VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Themes & Layout Problems and Customization VM 1.1 => Topic started by: img on January 15, 2009, 00:49:57 am

Title: "Add to Shopping-Cart" button is missing
Post by: img on January 15, 2009, 00:49:57 am
Hi Guys,

i am using Joomla 1.5 with VirtueMart. Its hard enough to explain my problem in german that way that everyone has the chance to understand it, but i'll try my best ;)
It does not depend on what operating system or browser you use, i tested it on windows, os x, Linux. All with FireFox, IE (if available) and Opera.

OK, the problem is: If i visit a product detail page from my webshop i can see the description of the product, product image and so on. On the bottom of de detail page i should see
buttons for quantity and a button like "add to cart". I styled the buttons with CSS, they got background colors and images.

First time i visit a detail page, it is shown like attached screenshot one, there are 3 buttons, but without any label or background. If i do now add (blind, cause i know what the
empty buttons should do ;) ) a product to my shopping cart and go back do any other detail page, i can see now everything i styled with css. You can see that in Screenshot two.

I askes different people, in different communities... some guys say that it looked like the image from screenshot 2 directly on the first visit, but unfortunately this is really a small number of persons :(
Perhaps somone could help me or give me some advices how to solve this problem. I also checked the website with webdevelopment plugins for Firefox, it seems that the browser cant find a background-image path, although i typed in one in the css file.

You can find the website over her: http://www..de/index.php?page=shop.product_details&product_id=106&flypage=flypage.tpl&pop=0&option=com_virtuemart&Itemid=17


Thanks a lot in advance,
Jan

[attachment cleanup by admin]
Title: Re: "Add to Shopping-Cart" button is missing
Post by: infinart on January 29, 2009, 16:58:33 pm
I have problem too. There is no add to cart button what soever. I have used Virtue Mart five times before and never has this! Check it for yourself:

http://bulkmarketingsoftware.com/buy-now

What the?
Title: Re: "Add to Shopping-Cart" button is missing
Post by: klutzon on January 29, 2009, 20:01:18 pm
OK, the problem is: If i visit a product detail page from my webshop i can see the description of the product, product image and so on. On the bottom of de detail page i should see
buttons for quantity and a button like "add to cart". I styled the buttons with CSS, they got background colors and images.
First time i visit a detail page, it is shown like attached screenshot one, there are 3 buttons, but without any label or background. If i do now add (blind, cause i know what the
empty buttons should do ;) ) a product to my shopping cart and go back do any other detail page, i can see now everything i styled with css. You can see that in Screenshot two.
I askes different people, in different communities... some guys say that it looked like the image from screenshot 2 directly on the first visit, but unfortunately this is really a small number of persons :(
Perhaps somone could help me or give me some advices how to solve this problem. I also checked the website with webdevelopment plugins for Firefox, it seems that the browser cant find a background-image path, although i typed in one in the css file.

Hi Jan,

Sorry for the inconvenience this is causing you, unfortunately things like this can happen, but let's see if we can solve it together eh? ;)

Okay, let's get the obvious out of the way: have you made sure you have set the "Use only as catalogue" feature off? (go to Admin -> Configuration, in the "Global" tab, in the "Global" section, the "Use only as catalogue" checkbox should be unticked). I want to state the obvious before moving on. :D

Now, would you mind sharing the version numbers of your Joomla and VirtueMart? It might be a factor, as the latest VirtueMart 1.1.3 has quite a few bugs fixed, If you've not updated to the latest, give it a try and see if that helps. In case you're already using the latest though, let's move on.

You mentioned that when you asked different people to test them for you, would you know what browser they were using, and how many people were using each browser? This might be a CSS-related bug, especially since you mentioned that some people saw what you wanted them to but for most people the add-to-cart button was missing, but judging by the fact that the variable used on the flypage is not displaying what it should be, I get the feeling perhaps this is parser-related. Still, it's a possibility.

Would you also mind sharing what versions of PHP and MySQL you are using? I know that some versions of PHP are buggy, especially combined with certain versions of MySQL, and it's the PHP engine that would be controlling whether the "Add to cart" button displays or not, so it might also be a factor.

These are all the possibilities I can think of right now, the info I've requested should help narrow down the possibilities. If I think of anything else, I'll update this thread. :)
Title: Re: "Add to Shopping-Cart" button is missing
Post by: infinart on January 30, 2009, 03:20:41 am
I know you comm. was directed to the first post but since I am haveing the same problem I thought I would share too:

FF 3.0.5
IE 7.0.6
IE 8.0.6

Joomla 1.5.9

VirtueMart 1.1.3 stable

MySQL version   5.0.67-community

PHP version   5.2.4




grrr... this is delaying the launch of my new product.



Title: Re: "Add to Shopping-Cart" button is missing
Post by: infinart on January 30, 2009, 06:40:15 am
ahh. how very frustrating! no add to cart button. oh, and yes the catalogue button is not selected.

;-)

ok. lets get this working!
Title: Re: "Add to Shopping-Cart" button is missing
Post by: clx on February 20, 2009, 18:40:04 pm
Hellow People

I have exactly the same Problem like klutzon: Fresh installed VirtueMart 1.1.3 with Joomla 1.5.9....the Buttons 'Add to Shopping Card' Quantity etc..  are missing. I did no CSS changins... can anyone help? ....Please;-)
Title: Re: "Add to Shopping-Cart" button is missing
Post by: macallf on February 21, 2009, 04:26:06 am
I have checked the first site and the majority of te code for displaying the form and cart buttons are totally missing.

Why this is I can only imagine, but I have heard of problems wih a certain SEO component.

I suggest turning off SEO completely and any modifications to the .htaccess file and retest.

Obviously if it works then the cause of the problem is then known. If not, then I would be at a loss. Because part of the code is there that is generated from the addtocart_form tpl file and the dropdown form (dropdown form is used for single products as well as dropdown children). But after the dropdown form is executed the program returns to the addtocart form and this is not being built!
Now, if this sometimes works and other times it doesn't then something is interfering with the page build.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: kingtech on February 26, 2009, 17:19:15 pm
I have that problem also, but I have noticed that it works fine in Firefox... perhaps we have an Internet Explorer CSS issue here.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: PRO on February 26, 2009, 22:44:50 pm
is your correct CSS file loading?
Title: Re: "Add to Shopping-Cart" button is missing
Post by: Tikkiro on March 07, 2009, 17:17:44 pm
Can I be a pain and bump in here as I have a somewhat similar problem only mine is more patchy i.e. some buttons visible others not.  This only happened after I upgraded to 1.1.3 (stable) - previously all had worked ok.  I'm using Joomla 1.5.9 with the latest PHP 5 as well.  I don't use SEO or any other less common configs for the site.  I've checked the actual descriptions etc and store config to ensure I've not got anything ticked that might cause this (e.g. not to show for no stock of items) and have checked the particular items that don't have the ATC button against those that do, and can't see any obvious difference in the configurations.  I've also tried the site with multiple templates to no avail.

One page of examples is at http://www.kitsandcards.co.uk/index.php?option=com_virtuemart&page=shop.browse&category_id=1&Itemid=26 (http://www.kitsandcards.co.uk/index.php?option=com_virtuemart&page=shop.browse&category_id=1&Itemid=26) - you'll see the Encouragement, Inspirational, Musical flowers for e.g. The other pages also show some similar ones.

==============
I've just seen in a search, one post where someone in the Dev team mentioned that this could happen if you had attributes set up for a product - sensibly enough you'd want your buyers to ensure they were aware of these before just dumping the item into the cart to buy, and sure enough I can see that is the case but only in Firefox - i.e. in IE they're defo not showing up for the ones they should every time for some strange reason.

Title: Re: "Add to Shopping-Cart" button is missing
Post by: slavonec on April 26, 2009, 06:30:58 am
Hi there

I got the same problem here with me. After careful looking around I found out that I do not see "add to cart" button only if I put New Properties in product's info.
So, how I can fix it?
here is the link:
http://goshopping-69plaza.com/Women-shoes/View-all-products.html (http://goshopping-69plaza.com/Women-shoes/View-all-products.html)
Title: Re: "Add to Shopping-Cart" button is missing
Post by: macallf on April 27, 2009, 02:48:11 am
You have attributes for each product.

Attributes are not shown on the browse page and therefore nor is an add to cart.

You can't add to cart if you cant select an attribute.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: loysgunawan on July 18, 2009, 12:49:25 pm
What's that mean? I have to define all attribute for all product to make add to cart button exist?

Or

I only define attribute for product that I want the add to cart button to existing?
Title: Re: "Add to Shopping-Cart" button is missing
Post by: arkani on February 08, 2010, 19:16:11 pm
i have add a similar problem, the "add to cart" stuff was not displayed and instead i get the "call vendor" info.
Why?
I found the session[auth][show_prices]gets set to 0 instead of 1.

What i havent found is where it gets set in order to check the code.

I quick hack is to do:
shop.product_details.php

......
//################################     HACK
$_SESSION['auth']['show_prices'] = _SHOW_PRICES;
//################################       END HACK
if (_SHOW_PRICES == '1') {
   if( $db_product->f("product_unit") && VM_PRICE_SHOW_PACKAGING_PRICELABEL) {
      $product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE_PER_UNIT').' ('.$db_product->f("product_unit")."):</strong>";
   }
........

and in
price.tpl.php

......
//if( $auth['show_prices']!=1||!isset($price_info["product_price_id"] )) :
//################################    HACK
if( $_SESSION['auth']['show_prices']!=1 || !isset($price_info["product_price_id"] )) :
//################################    END HACK
......

if someone could tell me where the $_SESSION['auth'] vars get set i can take a look and see where the error ocurs.
Or maybe this will help the virtuemart developers.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: yachzo on February 22, 2010, 09:03:19 am
I think some of you are having the same problem I am with the background images not linking properly.

Tikkiro, I looked at your site and used firebug on your cart button and got this from your stylesheet: url(http://www.kitsandcards.co.uk/components/com_virtuemart/fetchscript.php?gzip=0&subdir[0]=/themes/default&file[0]=theme.css&subdir[1]=/js/mootools&file[1]=mooPrompt.css&subdir[2]=/js/slimbox/themes/default/images/add-to-cart_blue.gif)

Now it seems like whatever is adding this part: /fetchscript.php?gzip=0&subdir[0]=/themes/default&file[0]=theme.css&subdir[1]=/js/mootools&file[1]=mooPrompt.css&subdir[2]=/js/slimbox/

is the culprit. Also do you notice background images missing in your virtuemart admin pages? (such as the apply or cancel buttons in the vm component menus)
Title: Re: "Add to Shopping-Cart" button is missing
Post by: donaldbane on February 23, 2010, 07:13:45 am
yachzo,

I reckon you're onto something there.

Its actually intermittent with me if that helps. The add to cart and ^ quantity images are missing. But they still function.

I noticed some images were missing in the virtuemart admin early on when I was having this problem.

When you mentioned you had the same problem, I went back to check, and they were displaying fine. I then went back to my site and the 'add to cart' and ^ button was back!

 ???
Title: Re: "Add to Shopping-Cart" button is missing
Post by: donaldbane on February 23, 2010, 07:42:39 am
My site goldpanningsupplies.co.uk

Hostmonster shared, joomla1.5.15  virtuemart 1.3

I hate these intermittant problems. If its any help - I have a backup site running with hostmonster, but under a different account. The icons seem to appear then reappear at the same time.

I am way out of my depth here. Could getting someone on joomlancers to edit my template fix this problem?

This shows you so out of my depth I am. I am quite happy for you to say 'that is the most rediculous thing I have ever heard.' But it might help you. I notice that when I view the site in ie I get an error on page errors.document.getElementByld(..). When I use firefox I see that the code when I scroll over the ^ qhantity icon says document.getElementByld. But this error also comes up when looking at the front page - where there are no 'add to cart' or ^ quantity images  :(

Title: Re: "Add to Shopping-Cart" button is missing
Post by: yachzo on February 23, 2010, 19:34:19 pm
Yeah my background image problem in the admin side is also intermittent. Sometimes when clicking on the links on the menu the images will show up, only to disappear again after I click on something else.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: donaldbane on February 24, 2010, 00:04:26 am
If its any help - this time I caught the site when the images were missing. i changed the template to ja purity and they were still missing.  ???
Title: Re: "Add to Shopping-Cart" button is missing
Post by: donaldbane on February 28, 2010, 11:29:15 am
http://forum.virtuemart.net/index.php?topic=67448.0

following things over here
Title: Re: "Add to Shopping-Cart" button is missing
Post by: quest108 on March 11, 2010, 12:36:30 pm
Hi,

I had the exact same problem. My solution was:

Ad this to your default template.css:

.art-PostContent {
/* virtuemartfix */
letter-spacing: 0px;
}

Also add it this to the IE6 en IE7 css files:

body { /*
virtuemartfix */
letter-spacing: 0px;
}
.art-PostContent {
/* virtuemartfix */
letter-spacing: 0px;
}

Maybe it works for you too :)
Title: Re: "Add to Shopping-Cart" button is missing because attribut on product
Post by: arianet on August 12, 2011, 11:59:42 am
Hello all,

I am french so sorry for my english...  :P

I have Joomla 1.5 + virtuemart 1.1.9.

I've got a problem with module "latestprod", product with an attribut does not display button "add to cart". :'(

Do you know Why ?
thanks by advance for your next response.
Title: Re: "Add to Shopping-Cart" button is missing
Post by: arianet on August 12, 2011, 12:25:10 pm
juste for information the problem is for all the website and not just for the module latest product....
Title: Re: "Add to Shopping-Cart" button is missing
Post by: myanenea on November 16, 2011, 17:58:54 pm
I got the same problem here with me. After careful looking around I found out that I do not see "add to cart" button only if I put New Properties in product's info.
So, how I can fix it?
here is the link: http://izya.byethost15.com
Title: Re: "Add to Shopping-Cart" button is missing
Post by: manalana on November 30, 2011, 10:49:17 am
Hi there

I got the same problem here with me. After careful looking around I found out that I do not see "add to cart" button only if I put New Properties in product's info.
So, how I can fix it?
here is the link:
http://goshopping-69plaza.com/Women-shoes/View-all-products.html (http://count.cheaprow.info/page.php?article=567244)

You have attributes for each product.

Attributes are not shown on the browse page and therefore nor is an add to cart.

You can't add to cart if you cant select an attribute.