News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add to Cart Modification..

Started by tthdoc, December 30, 2011, 06:10:56 AM

Previous topic - Next topic

tthdoc

Almost...  turning off the script and changing the form action does in fact allow it to go right to cart, with no popup,  but the cart has no item or price in it, just an empty cart :(  I did notice in the balloon popup that appears where you turn off the script that "these scripts are required for the dynamic operation of the basket and price!".  So I guess this option will not work unfortunately.

Doc

PRO

#16

$button_cls = 'addtocart-button'; //$button_cls = 'addtocart_button';
      $button_name = 'addtocart'; //$button_cls = 'addtocart_button';

Studio 42

Banquet changing the button_cls and button_name in default.php here
$button_cls = 'addtocart-button'; //$button_cls = 'addtocart_button';
$button_name = 'addtocart'; //$button_cls = 'addtocart_button';

is only needed

tthdoc

Was this a discussion or solution?  I went to default.php and what you have here is what is in that file.  I thought you were suggesting to change something in the code, but now I am lost.  Could you clarify?

Thanks,
Doc

PRO

$button_cls = 'addtocart-button';
$button_name = 'addtocart';


change the name , and the class

$button_cls = 'button-class';
$button_name = 'button-addtocart';

tthdoc

I changed it and still nothing shows up in the cart when I click add to cart.

Here is the section from components/com_virtuemart/views/productdetails/tmpl/default.php as it is now:


<?php // Add the button

         $button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
         //$button_cls = 'addtocart-button'; //$button_cls = 'addtocart_button';
         //$button_name = 'addtocart'; //$button_cls = 'addtocart_button';
         $button_cls = 'button-class';
         $button_name = 'button-addtocart';




PRO


tthdoc

Turned product scripts back on and the popup is back again  :(

PRO

I got it to work 1 time by doing something to the java file , but then it never added to cart again. But went straight to the cart

tthdoc

So are we back to square one with no solution, or is there a possibility of finding one still?

acidbird

hi there!

any updates on this one? I also need to link my productpage directly to the cart or at least delete "continue shopping" button on popup...

thx in advance!

boskoff

Yeap,

would be great to have a solution for this.
For VM 2.0.2 and J!2.5.x?

Cheers!

adrian

worked for me ! after clicking on "add to cart" takes me straight to the checkout page, also got rid of SKU column and Discount column to simpilfy things even more