Hi,
Deciding which language to use has nothing to do with our Module. Our module doesn’t load any language file or what so ever. It uses the language file that Virtuemart Component has loaded already.
Are you using VM2.6 ?
Handling the language in VM2.6 is little confusing, and only English comes with it currently.
To fix the “language thing”.
Open this INI file:
/components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini
If you are still using VM2.0.xx (haven’t updated to VM2.6 yet, which i don’t think so)
then open this INI file:
/language/en-GB/en-GB.com_virtuemart.ini
and find these language lines:
COM_VIRTUEMART_CART_NO_PRODUCT="There are no products in your cart.”
COM_VIRTUEMART_CART_OVERVIEW="Shopping cart”
COM_VIRTUEMART_CART_SUBTOTAL=“Subtotal"
COM_VIRTUEMART_CHECKOUT_TITLE="Check Out Now”
Translate those lines manually to your native language. So, even though Virtuemart tries to load the English Language INI file, the tests will be in your native language.
(if you see any other English text somewhere else, find and translate them as well)
Right now, i am seeing you misconfigure the shopping cart bag. For instance, i am seeing you have defined very small value for the “Dropdown box Width”, define at least 300 pixel (in case you don’t want to use small drop down box) OR hide the “shopping cart label” because it is now not readable. Because the theme you are using currently isn’t suitable to show the shopping cart label.
<PastedGraphic-21.png>
Also, there is one thing you need to be aware. Adding product to cart again has nothing to do with our Module. If you add product to cart through clicking the “add to cart” button, that product will be added to cart with “session” by Virtuemart Component not by our Module and our module will show what ever Virtuemart Component session tells to our Module.
But let’s say, you added the product through this URL:
milleeunaperlina.com/sitoprova/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1921&virtuemart_category_id=161#cart
(pay attention, the URL is non-www)
and if you enter the below URL to refresh the page:
www.milleeunaperlina.com/sitoprova/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1921&virtuemart_category_id=161#cart
(pay attention, the URL starts with www)
Then you will see that the shopping cart shows ZERO. It is because the domain has changed. It will be the same if you don’t use our module, you can try it with the official VM Shopping Cart module, the result will be the same. It is what it is.
www.yourdomain.com and yourdomain.com are not the same domains. (
www.yourdomain.com is a sub-domain of yourdomain.com)
Different domains will use a different sessions. The best way to resolve this session problem, you should decide what to use, either always use
www.yourdomain.com or always use
yourdomain.com
You can use .htaccess to 301 redirect non-www to www or www to non-www. It is up to you to decide which one you want to use. Doing this redirection is not a bad thing. Even
www.apple.com does that. Try to open
apple.com you will be redirected to
www.apple.com automatically.
To define 301 rules to redirect non-www to www (or the other way around) look at these articles
(there are millions of articles about it, it is a favorite topic. Use google.com to find them)
www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/#.U09iDse9aFs
stackoverflow.com/questions/1100343/apache-redirect-from-non-www-to-www
Beside that, i don’t see any problem about adding product to cart, or removing products from cart.
regards.