taoreflex Posted October 11, 2010 Share Posted October 11, 2010 During the checkout process (using PaypalAPI module) there is a line which says:Here is a short summary of your order You would expect there to be a summary of the order somewhere after this line but there isn't. As a short term fix I've removed the line so there is a blank space before the lines: - The total amount of your order is £6.98 (tax incl.)- We accept the following currency to be sent by PayPal: PoundPlease confirm your order by clicking 'I confirm my order'. Does anybody know how to get an order summary to appear after this line?Thanks Link to comment Share on other sites More sharing options...
rocky Posted October 12, 2010 Share Posted October 12, 2010 You will need to add the following before line 92 of modules/paypalapi/express/submit.php and line 70 of modules/paypalapi/paypalapi/submit.php: $smarty->assign($cart->getSummaryDetails()); then copy the shopping cart code from shopping-cart.tpl into your theme's directory into modules/paypalapi/confirm.tpl below the after the "Here is a short summary..." line. 1 Link to comment Share on other sites More sharing options...
mollycakes Posted June 29, 2011 Share Posted June 29, 2011 This is great Rocky! This just solved an alignment issue I was having. Is there a way to fix the cart summary here to not display the delete and add/subtract buttons. I would like for it to just be a summary so it will display the qty without being able to adjust what is in the cart. I receive a token error if I try to increase or decrease the qty here. Link to comment Share on other sites More sharing options...
rocky Posted June 29, 2011 Share Posted June 29, 2011 You can simply comment out code to do this. Edit shopping-cart-product-line.tpl in your theme's directory and change lines 48-70 (in PrestaShop v1.4.3) to: {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if} {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} {* getPageLink('cart.php', true)}?delete&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&token={$token_cart}" title="{l s='Delete'}"> getPageLink('cart.php', true)}?add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&token={$token_cart}" title="{l s='Add'}"> {if $product.minimal_quantity < ($product.cart_quantity-$quantityDisplayed) OR $product.minimal_quantity <= 1} getPageLink('cart.php', true)}?add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&op=down&token={$token_cart}" title="{l s='Subtract'}"> {else} {/if} *} <input type="hidden" value="{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_hidden" /> {* <input size="2" type="text" class="cart_quantity_input" value="*}{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}{*" name="quantity_{$product.id_product}_{$product.id_product_attribute}" />*} {/if} 1 Link to comment Share on other sites More sharing options...
mollycakes Posted June 29, 2011 Share Posted June 29, 2011 Thank you Rocky! I am off to give this a try! Link to comment Share on other sites More sharing options...
mollycakes Posted June 29, 2011 Share Posted June 29, 2011 Thank you! This worked but not the way I was hoping. I apologize for not specifying this correctly above. I just noticed how I worded that.I pasted the shopping-cart.tpl code into my paypal confirm.tpl page. Now I would like to remove the add/subtract buttons and text field so that it only displays the qty. I would only like to change the shopping-cart code that was pasted into the paypal confirm page but not the shopping cart summary page itself. Link to comment Share on other sites More sharing options...
rocky Posted June 30, 2011 Share Posted June 30, 2011 In that case, change the shopping-cart.tpl code back to the way it was (without the {* and *}), then copy the code above to modules/paypal/confirm.tpl. Link to comment Share on other sites More sharing options...
mollycakes Posted July 3, 2011 Share Posted July 3, 2011 Thanks Rocky! Unfortunately I have tried this whole process over and over again but it is not removing those cart quantity buttons. Maybe I am doing something wrong here. I did Post#1 & #3 but I must be doing something wrong here in #6. Any ideas? I am determined to make this work. See here Link to comment Share on other sites More sharing options...
rocky Posted July 4, 2011 Share Posted July 4, 2011 I can see that you've modified the code to remove the buttons, but they are still there. Try going to Preferences > Performance and change "Force compile" to "Yes", then refresh the confirmation page, then change "Force compile" back to "No" once you've finished changing TPL files. Link to comment Share on other sites More sharing options...
mollycakes Posted July 4, 2011 Share Posted July 4, 2011 Hmm this did not work either. I must have something wrong. I think I may have confused the part of changing the shop-cart code back to the way it was also. confirm.tplshopping-cart.tplshopping-cart-product-line.tpl Link to comment Share on other sites More sharing options...
rocky Posted July 4, 2011 Share Posted July 4, 2011 The code looks fine to me. I can't help any more without actually having access to your site.EDIT: After looking at the site, I found the original shopping-cart-product-list.tpl was being included, so I replaced the include with the contents of shopping-cart-product-list.tpl and then modified it as specified above. Link to comment Share on other sites More sharing options...
mollycakes Posted July 4, 2011 Share Posted July 4, 2011 Rocky is their anyway to include the shipping price here? I have removed display none from the quoting but it does not display shipping price. Cant seem to find source. Link to comment Share on other sites More sharing options...
rocky Posted July 5, 2011 Share Posted July 5, 2011 I can see "USPS Priority" has a shipping price of "Free!", which is probably why no shipping price is displayed in the shopping cart summary. Link to comment Share on other sites More sharing options...
mollycakes Posted July 5, 2011 Share Posted July 5, 2011 Hmm it displays in the cart with a price but not the summary. Link to comment Share on other sites More sharing options...
rocky Posted July 6, 2011 Share Posted July 6, 2011 I can still only get free shipping, so I can't see the shipping price, maybe because I'm using Australia as my country. What country should I use to get a shipping price?I also see that you removed display:none from modules/paypal/confirm.tpl, but not shopping-cart.tpl. You need to remove them from there too if you want the shipping price to be displayed when it is free. Link to comment Share on other sites More sharing options...
mollycakes Posted July 6, 2011 Share Posted July 6, 2011 I am using US I removed display none from she shop_cart.tpl but it still displays 0 on the confirm page. Link to comment Share on other sites More sharing options...
rocky Posted July 6, 2011 Share Posted July 6, 2011 I was able to see the problem after I changed my address to USA. The problem is that the shipping cost isn't being passed in to confirm.tpl from modules/paypal/submit.php. I fixed it by adding: $smarty->assign('shippingCost', $cart->getOrderTotal(true, Cart::ONLY_SHIPPING)); $smarty->assign('shippingCostTaxExc', $cart->getOrderTotal(false, Cart::ONLY_SHIPPING)); Link to comment Share on other sites More sharing options...
mollycakes Posted July 6, 2011 Share Posted July 6, 2011 Thank you Rocky!!! Wow your good! Now to finish setting up the back office and hopefully no more issues! Link to comment Share on other sites More sharing options...
wakaka Posted July 26, 2011 Share Posted July 26, 2011 Wow Rocky, you are very nice person. Your answers help alot. I need your help. In summary i need to add some details: summary + address + carrier info I have copied summary from "order-detail.tpl and shopping-cart.tpl" in "bankwire" payment_execution.tpl before "I confirm my order" button. But not all appear correct. What else need to add to make it display correctly? Thanks for your help. My prestashop is 1.4.3 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