Feature recuest: Hikashop cart module: add content

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102618

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #102642

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.

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102645

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.

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102646

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: 11 years 5 months ago by scharfet.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #102676

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.

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102687

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.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #102709

Hi,

You can only display your content for a specific step.
The variable "$this->step" contains the step number. So you can

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.

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102719

I added the code to "checkout | step", but it is not working.

....
</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: 11 years 5 months ago by scharfet.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #102729

Hi,

The line that I gave you is some PHP code, not HTML, you have to put is as PHP 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.

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #102732

It worked.

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

step == 0

Thank you!

Last edit: 11 years 5 months ago by scharfet.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum