nzrobert Posted March 8, 2010 Share Posted March 8, 2010 Hi there,Im trying to create an order summary on the payments page.So far i have it displaying:- Items purchased- Discounts- Shipping amounts -Total costsAnd i want to display the delivery address just to summarise the entire order before payment.I cant seem to get the delivery address to display.Any flash ideas?Cheers Link to comment Share on other sites More sharing options...
nzrobert Posted March 11, 2010 Author Share Posted March 11, 2010 Any ideas, anyone? Shouldn't be that hard right? Link to comment Share on other sites More sharing options...
uddhava Posted March 11, 2010 Share Posted March 11, 2010 You can edit the order-payment.tpl file in your themes directory.But not all variables might be available in the smarty template.You need to find out from the order.php (in the root) which vars are being sent to the template. Link to comment Share on other sites More sharing options...
nzrobert Posted April 29, 2010 Author Share Posted April 29, 2010 Hi,Thanks for your reply, i have finally had some time to get back to this.. I am stuck on how i can accomplish this.Can anybody help me add these vars to Smarty in order.php and how i should call them in order-payment.tpl?Cheers Link to comment Share on other sites More sharing options...
nzrobert Posted May 16, 2010 Author Share Posted May 16, 2010 Hi Guys,I'm still having trouble accomplishing displaying delivery details on the payment page, to confirm all parts of the order to customers, which i think would be a really beneficial integration for all preta shop users.Any help would be awesome.. Thanks Link to comment Share on other sites More sharing options...
Burhan BVK Posted May 16, 2010 Share Posted May 16, 2010 To access the delivery address you need to use this code: $address=new Address($cart->id_address_delivery); Assign this variable to smarty and you can access all the required variables. Link to comment Share on other sites More sharing options...
nzrobert Posted May 16, 2010 Author Share Posted May 16, 2010 Thanks White..I kind of knew that much, but don't know how to assign it to smarty, can you help me out at all?Cheers Link to comment Share on other sites More sharing options...
Burhan BVK Posted May 16, 2010 Share Posted May 16, 2010 I thought that part is quite obvious since you see it everywhere, $smarty->assign('address', $address); Link to comment Share on other sites More sharing options...
nzrobert Posted June 22, 2010 Author Share Posted June 22, 2010 ok so let me get this straightYou apply the code: //add address for payment page $smarty->assign(‘address’, $address); in the order.php (payments page section)and add this on the order-payments.tpl Your order will be delivered to: {php}$address=new Address($cart->id_address_delivery); {/php} I cant seem to get it going, can you assist where i might be going wrong white? Link to comment Share on other sites More sharing options...
nzrobert Posted August 9, 2010 Author Share Posted August 9, 2010 Can anyone else help me here? i'm still stuck. Link to comment Share on other sites More sharing options...
nzrobert Posted August 10, 2010 Author Share Posted August 10, 2010 nice link spam, does anyone know where im going wrong here with my issue. Link to comment Share on other sites More sharing options...
nzrobert Posted August 13, 2010 Author Share Posted August 13, 2010 bump..bump Link to comment Share on other sites More sharing options...
Alectra Posted March 2, 2011 Share Posted March 2, 2011 Hey, any chance you have resolved this? I am trying to do the exact same thing as you and am finding it annoying. I have worked with PHP and HTML for a long time and JS for a little while, but I have never used Smarty before, and so far, I am not liking it. If I figure out a good way to do this, I will post my solution, but if you have already figured it out, it would be awesome if you would post your solution. 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