News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - cbarg2004

#1
It is a graphic banner, you only need the picture address (URL). If you want to write text over it, you will need to do Text Banner and there you will have a Source box code.

Hope that helps
#2
General Discussion / Re: Timer for sales
March 25, 2014, 01:43:31 AM
It doesn't seem like a very complicated task. Maybe create a block with a countdown script, eg: https://github.com/hilios/jQuery.countdown
#3
I would highly recommend to read a tutorial about PHP and MYSQL. I learned a ton from 3wSchools:

http://www.w3schools.com/php/default.asp
http://www.w3schools.com/sql/default.asp

#4
Configuration / Re: How to edit contact us page?
March 21, 2014, 09:36:59 PM
You can edit some of that from
System -> Settings -> Details
#5
No, the image URL corresponding to the article you are viewing is in resources, and the URL is in the database (resource_description.resource_path). I had to do a query, even though I didn't want to :-/ but it's working :-)
#6
Template Support / Re: Can't get my logo to appear
March 17, 2014, 08:36:32 PM
I can see your logo :-\
#7
Basically I need to get the image of the product url within the head tags for Facebook metatags. I just did it opening a connection in the head.tpl but I don't quite like the idea :-/
#8
Lee is right on the coin!! I guess I have to come up with a different page for that kind of report...
#9
When adding a product, in the General tab you can see the Cost field (The wholesale cost used for profit reporting) for the product. When we go to the Options tab, you can add the option Size, which is very nice to have.
However, there is no field for the cost of a bigger size product (you have the price modifier, but that's only for the costumer to see, not for profit reports).
Lets say that you sell shampoo, and the same type of shampoo comes in two different sizes, 750ml and 1500ml. You will first enter your Cost for the 750ml and the Price you are selling it for. Then you enter 1500ml as the second option and charge more for it, but there is no way to tell AbanteCart that the second option is also more expensive for me, my wholesale price also has a 'modifier'!
Am I correct, or I am missing something?

Thanks :)
#10
If in storefront/view/default_html5/template/common/head.tpl I enter the line

print_r (get_defined_vars());

I get an array of all defined variables. Now, how can I add extra variables? Where (what file) those variables are defined and populated?
I know the query, I just don't know where to write it.

Thanks :)
#11
In the folder /core/database you can see two files: amysqli.php and mysql.php
I am not really sure, though, when the system picks one or the other. MySQL is soon being deprecated and it is not a good idea to keep working on it.
My two cents  :)
#12
SEO / Re: Meta Tag SEO Tips and Tricks
March 15, 2014, 05:36:07 PM
You are correct, and I understand the image I am looking for is in resources. However, that image, as per the example, will always be the same (logo of your company, for example). What I want to achieve here is to add the individual product image (eg: wholesaleostomysuppliescom/resources/image/18/90/8.jpg).
I believe I will dig deeper to get to the complicated DB, if not, I will open a pop up window and javascript everything. I thought I could name the pictures with the product name, but I don't believe that would work since the 'name' of the resource is NOT the name of the picture uploaded :-(
#13
An easy solution is to hide that part of the footer. Open storefront/view/default_html5/stylesheet/style.css , find .copyrightbottom  and add display: none; It would end up something like:

/*Copyright Bottom*/
.copyrightbottom {
   display: none;
   background: #303030;
   padding: 15px 0;
   color: #969ba4
}
#14
SEO / Re: Meta Tag SEO Tips and Tricks
March 15, 2014, 02:08:31 AM
Now it gets funnier if you want to have all those fields to be dynamic (or changing with every product). In my head.tpl, I have most of it figured out:

$href = 'http';
if ($_SERVER["HTTPS"] == "on") {$href .= "s";}
$href .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
  $href .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
  $href .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
$url = parse_url($href);
$query = array();
parse_str($url['query'], $query);

$url = " external link ?rt=product/product&product_id=".$query['product_id'];

echo '<meta property="og:title" content="'.$title.'" />';
echo '<meta property="og:type" content="ecommerce" />';
echo '<meta property="og:description" content="'.$description.'" />';
echo '<meta property="og:url" content="'.$url.'" />';


However, I have some issues trying to get the < meta property=og:image content=$img_url />

I can see it in product.tpl, but I'm not able to reach it from head.tpl. No variable seems to work for the image url :-/

Any clue about how to get it??

Forum Rules Code of conduct
AbanteCart.com 2010 -