Making print cart a quote!

  • Posts: 32
  • Thank you received: 1
10 years 6 months ago #180978

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.28
-- Browser(s) name and version -- : All major browsers
-- Error-message(debug-mod must be tuned on) -- : None

Dear Developers, Users and Contributors,

We had the crazy idea to make a quote when a user clicks on the print cart button. So we written the text that needs to come before the cart details and we made a text for after the cart button.

We created 6 modules (before text + after text = 2 x 3 different languages = 6). 3 modules have the position hikaquote_before and 3 have hivequote_after.

We installed Modules Anywhere so we could use the 'modulepos' tag instead of 'loadingpositions' because the latter is not working in the Hikashop Views.

Easy insertable code.
<div>{modulepos hikaquote_before}</div>
<div>{modulepos hikaquote_after}</div>


Now we need to find the right view to edit only the template that is used for printing the cart.

We have seen that it could work when we edited the wrong file :P
The file in question is Display Views > Checkout > Cart.

But all changes that we made in there where also visible on the checkout page. Duh the view is checkout...
So we used a couple of display nones to hide it here. But that is a rather ugly solution.

So finally the question is there another view that we can edit to make our wish come true.

Thanks to everyone in advance for helping.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #181056

Hi,

The view to edit is indeed "checkout / cart" and you have to add a little PHP condition to display the desired content only if we are in popup:

if(JRequest::getVar('tmpl','')=='component'){
  // your content
}

The following user(s) said Thank You: loginsecure

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
10 years 5 months ago #181345

Dear Xavier,

Thank you once again for the right answer.

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum