Skip to main content

Feature recuest: Hikashop cart module: add content

More
13 years 4 months ago #102618 by scharfet
Hello,

feature request: the possibility to add content at the bottom (and top?) of the cart module. (i.e. to add shipping costs, etc. at the bottom of the shopping cart)

This text should dissappear on the following pages during the check out process, so adding a Joomla custom-html module does not work.

Or is there an other workaround to get this work?

Best and Thank you.

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

More
13 years 4 months ago #102642 by Xavier
Hi,

The shipping costs are not calculated in the cart module, but in the checkout.
So you can edit the view "product / cart" to add some custom html to display a "standard" shipping cost.

You can remove a module during the checkout, you jsut have to set a menu in the option "menu" of the checkout configuration page.
And the menu can be a menu where the custom module is not displayed.

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

More
13 years 4 months ago #102645 by scharfet
1.)
I created a Joomla custom-HTML-Module

2.) I installed the NoNumber plugin " Modules Anywhere "

3.) I edit the view "checkout / cart" and added at the bottom follwoing code: {module 123} (123 = module ID created en step 1)

works fine.

Thank you!

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

More
13 years 4 months ago - 13 years 4 months ago #102646 by scharfet
I thought I solved it but I found one issue that I could not solve yet.

How to move the next button to the top of the custom text.




Thank you.
Last edit: 13 years 4 months ago by scharfet.

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

More
13 years 4 months ago #102676 by Jerome
Hi,

The "next" button is added in the "checkout | step" view and you place your module in the "checkout | cart".
So, you can:
- Modify the "checkout | step" view in order to move the "next" button (but at the top of the page if you want something nice).
- Display your module in the view "checkout | step" and not in "checkout | cart". So the module can be placed under the "next" button.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
13 years 4 months ago #102687 by scharfet
Hi,

When I add it to "checkout | step" the custom text is displayed en all steps of the check out process, but I only want to display the custom text in the shopping cart (only in the first step).

Do you see any possibility whether I chan solve this any how?

Best,

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

More
13 years 4 months ago #102709 by Jerome
Hi,

You can only display your content for a specific step.
The variable "$this->step" contains the step number. So you can
Code:
if($this->step == 1) { echo '{module 123}'; }
(by replacing "1" with the step number you want).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: scharfet

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

More
13 years 4 months ago - 13 years 4 months ago #102719 by scharfet
I added the code to "checkout | step", but it is not working.

Code:
.... </div> if($this->step == 1) { echo '{module 158}'; } <div class="clear_both"></div> <?php if(JRequest::getWord('tmpl','')=='component'){ exit; }


please visit this page, and adit a product, then got to the chart.
www.monpetitpot.es/index.php?option=com_...cle&id=24&Itemid=123
Last edit: 13 years 4 months ago by scharfet.

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

More
13 years 4 months ago #102729 by Jerome
Hi,

The line that I gave you is some PHP code, not HTML, you have to put is as PHP code:
Code:
.... </div> <?php if($this->step == 1) { echo '{module 158}'; } ?> <div class="clear_both"></div> <?php if(JRequest::getWord('tmpl','')=='component'){ exit; }

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
13 years 4 months ago - 13 years 4 months ago #102732 by scharfet
It worked.

I had to use step == 0 in order to show it in the cart-view.
Code:
step == 0

Thank you!
Last edit: 13 years 4 months ago by scharfet.

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

Time to create page: 0.216 seconds
Powered by Kunena Forum