Sr.Colas Posted June 30, 2011 Share Posted June 30, 2011 Hello guys, i added some few products just below cart sumary, when i press 'add to cart' the block cart get a new line, all right, the sumary total amount update aswell but there is not a new line with the new productAny hint? Regards Link to comment Share on other sites More sharing options...
tomerg3 Posted July 1, 2011 Share Posted July 1, 2011 It's impossible to understand anything from your post.....What version of PS are you using?Clean install or upgrade?What customization did you do to it?Post a link to the page and you are much more likely to get help. Link to comment Share on other sites More sharing options...
Sr.Colas Posted July 2, 2011 Author Share Posted July 2, 2011 Hehe, sorry for my english, i can't put the url due i'm working on it offline (wamp) What i meant is that i'm making a module just to show 3 products just below OPC page, under the cart summary (like homefeature module but in opc page) so if i click in a product to add it to cart, all work fine but i need to refresh the page (F5) to see the new product in the cart summary so i'm asking for a ajax code to add a line instead of refresh the whole pageI'm using a clean a 1.4.17 clean installRegards Link to comment Share on other sites More sharing options...
tomerg3 Posted July 2, 2011 Share Posted July 2, 2011 The ajax part will be done automatically if you call the product and add to cart buttons correctly, you can see how it's done in the product-list.tpl file. Link to comment Share on other sites More sharing options...
Sr.Colas Posted July 3, 2011 Author Share Posted July 3, 2011 thanks for your supporti use that ajax code from product-list getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'} But as i said, all work perfect (ajax block cart new line, total amount, image fly from the product to the block cart) but there is not a new product line in the summary until i press f5 , i will try to put some pics tomorrowThanks Link to comment Share on other sites More sharing options...
tomerg3 Posted July 3, 2011 Share Posted July 3, 2011 You will have to write some custom code if you want that page to refresh, as the existing add to cart function does not refresh the OPC page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now