cyberdoc Posted June 29, 2014 Share Posted June 29, 2014 hi, can anyone guide me of a hook to use to display something on the order page(where all items in my cart and their total etc is displayed (step 1 of checkout) ) Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2014 Share Posted June 29, 2014 hello you can use there two hooks: - shoppingCart - shoppingCartExtra Link to comment Share on other sites More sharing options...
cyberdoc Posted June 29, 2014 Author Share Posted June 29, 2014 thanks vekia, i tried the displayshoppingcart hook but it doesnt fetch me the ideal result.. how do i verify its working?? Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2014 Share Posted June 29, 2014 it will be much easier if you will say what you're trying to achieve what you're trying to do with this hook? Link to comment Share on other sites More sharing options...
cyberdoc Posted June 29, 2014 Author Share Posted June 29, 2014 i wanted to add an extra line to order page from the database depending on the products in the cart.. Link to comment Share on other sites More sharing options...
bellini13 Posted June 29, 2014 Share Posted June 29, 2014 show us the code from your displayshoppingcart function Link to comment Share on other sites More sharing options...
cyberdoc Posted June 30, 2014 Author Share Posted June 30, 2014 public function hookdisplayOrderDetail($params) { $products = $params['cart']->getProducts(true); return $this->display(__FILE__, 'views/frontend/sample.tpl'); } Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 ok, also show us the contents of your sample.tpl file I also assume you have confirmed that the module is hooked into the "displayOrderDetail" position? Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2014 Share Posted June 30, 2014 btw you use different hook, not hook that i suggested to use - shoppingCart - shoppingCartExtra Link to comment Share on other sites More sharing options...
cyberdoc Posted July 2, 2014 Author Share Posted July 2, 2014 hey i added the displayshopping cart hook but it displays the contents on top of the page instead of displaying in/after the cart... Link to comment Share on other sites More sharing options...
bellini13 Posted July 2, 2014 Share Posted July 2, 2014 a few options 1) you have to edit the themes template file and move the hook to the position you would want it to appear. By default the position is on top 2) you would use javascript/jquery to move your content where you want it to appear, after the page finishes loading. Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 hey i added the displayshopping cart hook but it displays the contents on top of the page instead of displaying in/after the cart... shoppingCartExtra displays contents below the cart. Link to comment Share on other sites More sharing options...
sky11 Posted June 23, 2021 Share Posted June 23, 2021 On 6/29/2014 at 3:33 PM, cyberdoc said: hi, can anyone guide me of a hook to use to display something on the order page(where all items in my cart and their total etc is displayed (step 1 of checkout) ) I think you are looking for displayCheckoutSummaryTop hook. 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