Amanda Watson
asked on
Add to cart button missing?
If you go to a product that has ONE item in the category there is no add to cart button at all.
Please see the live site here for an example
In categories "Surge Protectors" and "Test Meters" the add to cart button has dissapeared.
http://www.maxtemp.com.au/index.php?option=com_virtuemart&page=shop.browse&category_id=56&Itemid=1
and
http://www.maxtemp.com.au/index.php?option=com_virtuemart&page=shop.browse&category_id=6&Itemid=1
Please can you tell me how to FIX it please?
[7:08:34 AM] Amanda Watson:
please use this as login for the site to see the products
aaabbb
password: aaabbb
Please see the live site here for an example
In categories "Surge Protectors" and "Test Meters" the add to cart button has dissapeared.
http://www.maxtemp.com.au/index.php?option=com_virtuemart&page=shop.browse&category_id=56&Itemid=1
and
http://www.maxtemp.com.au/index.php?option=com_virtuemart&page=shop.browse&category_id=6&Itemid=1
Please can you tell me how to FIX it please?
[7:08:34 AM] Amanda Watson:
please use this as login for the site to see the products
aaabbb
password: aaabbb
where do you want to add the add to cart button? to browse or flypage ?
ASKER
browse page
put this
<?php echo $form_addtocart ?>
<?php echo $form_addtocart ?>
ASKER
Thank you, yes the add to cart button is present on all the pages, EXCEPT for pages with only one item in their category
These are the files that have been edited...something is wrong with them so that the button isn't showing when there is only ONE item on the page...can you see where the problem is? addtocart-form.tpl.txt
browse-orderbyform.tpl.txt
browse-pagenav.tpl.txt
These are the files that have been edited...something is wrong with them so that the button isn't showing when there is only ONE item on the page...can you see where the problem is? addtocart-form.tpl.txt
browse-orderbyform.tpl.txt
browse-pagenav.tpl.txt
no you have to put it in the browse page that you use in components\com_virtuemart\ themes\cen tiva\templ ates\brows e
ASKER
IT is already in the browse page I am using.
That is not the problem
That is not the problem
ASKER
The add to cart button works on all pages as it is supposed to EXCEPT for pages with only one product, so because this site has been customised, I have attached the affected pages to see if you can figure out why the add to cart button shows on pages with more that one product to browse, but not on pages with only one product
why did you put add to cart to the browse-orderbyform.tpl.txt ?
ASKER
because that form has been amended when the the add to cart function was changed.
What changed was that the add to cart was moved to the top of the browse page, rather than being there for each product..(which is the norm for virtuemart)
What changed was that the add to cart was moved to the top of the browse page, rather than being there for each product..(which is the norm for virtuemart)
ASKER
the ps_cart and ps_attribute files were also amended but I don't think they are implicated in this error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found the solution
ASKER