- Posts: 32
- Thank you received: 1
Making print cart a quote!
- loginsecure
-
Topic Author
- Offline
Less
More
11 years 11 months ago #180978
by loginsecure
Making print cart a quote! was created by loginsecure
-- 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.
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
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.
-- 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.
Code:
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
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.
11 years 11 months ago #181056
by Xavier
Replied by Xavier on topic Making print cart a quote!
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:
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:
Code:
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.
- loginsecure
-
Topic Author
- Offline
Less
More
- Posts: 32
- Thank you received: 1
11 years 11 months ago #181345
by loginsecure
Replied by loginsecure on topic Making print cart a quote!
Dear Xavier,
Thank you once again for the right answer.
Thank you once again for the right answer.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds