Add to cart function works strange (Virtuemart 2) - virtuemart

I use Joomla 2.5.28 and Virtumart 2.6.2 for my website. I created many child products for all of my parent products and used plug-ins custom field (stockable variants) to be able to add right variant of product to cart. And everything is ok, except one thing. If I push "Add to cart" button twice on a same product variant, I see two separated identical lines in the shopping cart.
It works this way only for child products. If I just create product without any children, it works fine.
Any ideas why it works this way and how can fix it?
Thanks in advance!

There was an issue with the Add To Cart button in previous versions of VirtueMart 2.
The latest version 2.6.18 and the upcoming 2.6.20 already have means to prevent a double click on the button.
Please update as soon as possible for security reasons anyway.

Related

Magento associated products doesn't work

I have Magento 1.6
I have done a bulk upload today, (all products are configurable) and they have created normally except they didn't associate.
I can't figure out why, I have tried to change the attribute, but it still not working.
I have deleted them all and start again, and when I click on the configurable product, it is now asking me to select a super attribute, so I need to click on it, associate manually the product, then it is working.
I suppose it is coming from my set up in the attribute ? but I can't figure out what
Hope you can help

Joomla! & VirtueMart - show product category instead of shop front?

I have a Joomla! 1.5.15 and VirtueMart 1.1.4 installation from a client project and I need to change something I'm not sure how to.
I have one of my menu links pointing to the shop (menu item type: VirtueMart) but it directs me to a front page (to be precise, it renders the content in themes/default/templates/common/categoryChildlist.tpl.php).
What I want is for this link to make one of my product categories show.
I've tried several methods (without any luck so far):
Using header() doesn't work (I know, it's a pretty shameful trick, but I had to try it).
Changing the menu item type doesn't work (you can't modify the link itself).
Modifying any of the browser_ files doesn't work either (at least, doesn't look like it).
I'm a bit out of ideas... any hint?
It's been a while since I used VM 1.1.x, but isn't there a Category menu item available in the menu manager? (by the way you are way out of date I think 1.1 got to version 1.1.9 before it reached EOL).
I would also strongly recommend updating your Joomla! installation to at least 1.5.26 with the additional hotfix that was released recently (Joomla 1.5.x is also EOL).

Magento - Is it possible to add a menu item in the Admin section, but only on some Magento version?

I developed a Magento extension which implements several functionalities. Almost all of them work perfectly in versions from 1.4 to 1.7, except for one. That one is an extra form, which is nice to have, but not vital for the rest of the module to work.
To open that form, a menu entry is added to the Admin menu. In versions 1.5 and 1.4, opening such window results in an error message, due to the lack of some classes introduced in version 1.6.
I'm therefore wondering if it would be possible not to add the menu entry to the Admin menu if Magento version is < 1.6. Is there a way to accomplish this?
Thanks in advance for the answers.
I didn't find any nice event to achieve this.
You can try to observe adminhtml_init_system_config and check wether the menu is in the $config. If it is, you can add or delete things.
Alternative is to rewrite Mage_Adminhtml_Block_Page_Menu or Mage_Adminhtml_Model_Config
But rewriting is a bit overkill if you ask me.

Why is Magento forcing me to log in before I can add a product to cart?

I'm developing an ecommerce site using Magento v. 1.7.0.2 and for some reason,
every time I try to add a product to cart on the front end, the system requires
that I log in before it will let me add it.
I have Guest Checkout enabled and none of my test products are downloadable.
Interestingly, it only happens on Windows. I clear the cache in all my browsers on Windows
and try it and I get the log in / register screen whenever I try to add a product to cart.
If I test it on the Mac, though, it works perfectly.
Why is this happening and how do I fix it?
Many thanks!
Cynthia
It depends:
on your config if guest checkout is enabled from system > configuration > checkout
on your products, if they are downloadable then they only can be purchased by registered users
Well, I solved the problem. Believe it or not, it was a CSS error on my part.
I had the wishlist link div overlapping the add to cart button, in effect
covering it up w/ the wishlist link.
So while it looked like I was clicking on Add to Cart, I was actually adding
the item to my wishlist, which cannot be done w/o being a logged in, registered
user.
Sigh...big DOH! on my part.
The moral of this story is: always check your code!

How can I code a more simplified VirtueMart purchase/checkout sequence?

I'm almost positive this topic has been addressed somewhere because my question feels so rudimentary. That said, I haven't had any luck searching, so here's the question:
I am using VM to sell ONE item only (digital download), and the default "Add to Cart" then "View Cart" 2-step process is cumbersome. What I want is the ability to change "Add to Cart" to a button that says "Purchase" (I don't need help here) and change the coding for the button so that ONE item is added to the cart and the user is taken automatically to the checkout page.
If there is a simple URL format to achieve this, that's my preference, because then I could just manually code out my own product page (like a Joomla article, rather than in VirtueMart) and then add my own "Purchase" button. However, if I have to modify PHP, that's fine too, I just need to get pointed in the right direction.
If someone could direct me to the proper resource for this? I can't believe I haven't been able to find something so rudimentary, and I suspect I'm not using the right search terms.
assuming you are using Joomla 1.5
here is an extension: http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-related-products/14458
see demos, I'm sure it will be fine for you
Compatible with VirtueMart 1.1.x (VM2 version is ongoing)
5/5 votes from 6 users

Resources