[Skip to main content](#vessel-content)

#   features how-to for cart &amp; checkout?

##

- **[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")**
- [![olivnewton's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9482-olivnewton "View olivnewton's Profile") Topic Author
- [ Offline](/forum/user/9482-olivnewton)

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 4 months ago -  12 years 4 months ago [\#163406](#163406) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[features how-to for cart &amp; checkout?](/forum/27-checkout/868524-features-how-to-for-cart-checkout?start=20#163406 "dear team, i was wondering how to accomplish the following  cart module: 1. &quot;show title&quot; is YES but its not showing (maybe because &quot;mini cart&quot; is YES?) 2. hide cart module if empty  checkout: i managed to hide cart on checkout (not an easy task, but it worked) created 2 menus: - hikashop &gt; product - hikashop &gt; checkout (this info was missing in mohameds description:   www.hikashop.com/forum/checkout/863039-n...-be-easy.html#129157 ) - in &quot;Hikashop-&gt;System-&gt;Configuration-&gt;'Checkout'&quot; used the &quot;Force a menu on the checkout&quot; option to one of your menu (= in my case &quot;checkout&quot;) - in the &quot;Module Assignment&quot; of my cart module set option to &quot;Only on the pages selected&quot; un-checked the menu that your have set through the &quot;Force a menu on the checkout&quot; option (= in my case &quot;checkout&quot;)  but now in the adress bar i get the following URLs: myshop.com/checkout/checkout/ myshop.com/checkout/checkout/task-step/step-0...x  1. is it possible to get rid of the double &quot;checkout&quot;? 2. is it possible to add custom text for &quot;task-step&quot; and &quot;step-0 ... x&quot;?  best regards")*

now i checked something else as well...

lets say my code in modules.php is: Code:

function modChrome_cart($module, &amp;$params, &amp;$attribs) { if ($module-&gt;title) { echo $module-&gt;title; } else { echo 'NOTITLE!'; } if ($module-&gt;content) { echo $module-&gt;content; } }

and in index.php i use
&lt;jdoc:include type="modules" name="warenkorb" style="cart" /&gt;

then all works! the title is displayed!!!

**but when i work this way (as i do in all projects) it does not work:**
i choose the module style over module config: advanced &gt; module style &gt; cart
and in my index.php i write as always (no style defined here!)
&lt;jdoc:include type="modules" name="warenkorb" style="" /&gt;

for all other modules (custom and other vendors) this is working, and always has, except for hikashop!
is this a bug in hikashop or is this the wrong way of doing this?
whats the point of having in the backend the option to pick a module style if i HAVE to add it also to my style-attribute in index.php ??? you work either the one or the other way (i thought)...

Last edit: 12 years 4 months ago by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODUyNC1mZWF0dXJlcy1ob3ctdG8tZm9yLWNhcnQtY2hlY2tvdXQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

12 years 4 months ago [\#163701](#163701) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[features how-to for cart &amp; checkout?](/forum/27-checkout/868524-features-how-to-for-cart-checkout?start=20#163701 "dear team, i was wondering how to accomplish the following  cart module: 1. &quot;show title&quot; is YES but its not showing (maybe because &quot;mini cart&quot; is YES?) 2. hide cart module if empty  checkout: i managed to hide cart on checkout (not an easy task, but it worked) created 2 menus: - hikashop &gt; product - hikashop &gt; checkout (this info was missing in mohameds description:   www.hikashop.com/forum/checkout/863039-n...-be-easy.html#129157 ) - in &quot;Hikashop-&gt;System-&gt;Configuration-&gt;'Checkout'&quot; used the &quot;Force a menu on the checkout&quot; option to one of your menu (= in my case &quot;checkout&quot;) - in the &quot;Module Assignment&quot; of my cart module set option to &quot;Only on the pages selected&quot; un-checked the menu that your have set through the &quot;Force a menu on the checkout&quot; option (= in my case &quot;checkout&quot;)  but now in the adress bar i get the following URLs: myshop.com/checkout/checkout/ myshop.com/checkout/checkout/task-step/step-0...x  1. is it possible to get rid of the double &quot;checkout&quot;? 2. is it possible to add custom text for &quot;task-step&quot; and &quot;step-0 ... x&quot;?  best regards")*

Hi,

I honestly never used the "module style" option. I usually always leave the option empty and set the style in the jdoc tag so that all the modules of the position get the style from the jdoc tag.

So I did some tests and I found the problem.

Edit the file modules/mod_hikashop_cart/mod_hikashop_cart.php and the file modules/mod_hikashopt/mod_hikashop.php
and change the line:
if(!is_object($v)){
to:
if(!is_object($v) &amp;&amp; $params-&gt;get($k,null)==null){

and then the style option will be taken into account.

The following user(s) said Thank You: [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODUyNC1mZWF0dXJlcy1ob3ctdG8tZm9yLWNhcnQtY2hlY2tvdXQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")**
- [![olivnewton's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9482-olivnewton "View olivnewton's Profile") Topic Author
- [ Offline](/forum/user/9482-olivnewton)

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 4 months ago [\#163794](#163794) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[features how-to for cart &amp; checkout?](/forum/27-checkout/868524-features-how-to-for-cart-checkout?start=20#163794 "dear team, i was wondering how to accomplish the following  cart module: 1. &quot;show title&quot; is YES but its not showing (maybe because &quot;mini cart&quot; is YES?) 2. hide cart module if empty  checkout: i managed to hide cart on checkout (not an easy task, but it worked) created 2 menus: - hikashop &gt; product - hikashop &gt; checkout (this info was missing in mohameds description:   www.hikashop.com/forum/checkout/863039-n...-be-easy.html#129157 ) - in &quot;Hikashop-&gt;System-&gt;Configuration-&gt;'Checkout'&quot; used the &quot;Force a menu on the checkout&quot; option to one of your menu (= in my case &quot;checkout&quot;) - in the &quot;Module Assignment&quot; of my cart module set option to &quot;Only on the pages selected&quot; un-checked the menu that your have set through the &quot;Force a menu on the checkout&quot; option (= in my case &quot;checkout&quot;)  but now in the adress bar i get the following URLs: myshop.com/checkout/checkout/ myshop.com/checkout/checkout/task-step/step-0...x  1. is it possible to get rid of the double &quot;checkout&quot;? 2. is it possible to add custom text for &quot;task-step&quot; and &quot;step-0 ... x&quot;?  best regards")*

i used to work exactly as you in the past, but found out, that this way you have much more control over the styling of the modules. especially if you have many modules on the same position but want to have a totally different output on some of them...

will this code-change will be available on the next release or do i need to keep track and manually change it after updating?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODUyNC1mZWF0dXJlcy1ob3ctdG8tZm9yLWNhcnQtY2hlY2tvdXQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 4 months ago [\#163796](#163796) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[features how-to for cart &amp; checkout?](/forum/27-checkout/868524-features-how-to-for-cart-checkout?start=20#163796 "dear team, i was wondering how to accomplish the following  cart module: 1. &quot;show title&quot; is YES but its not showing (maybe because &quot;mini cart&quot; is YES?) 2. hide cart module if empty  checkout: i managed to hide cart on checkout (not an easy task, but it worked) created 2 menus: - hikashop &gt; product - hikashop &gt; checkout (this info was missing in mohameds description:   www.hikashop.com/forum/checkout/863039-n...-be-easy.html#129157 ) - in &quot;Hikashop-&gt;System-&gt;Configuration-&gt;'Checkout'&quot; used the &quot;Force a menu on the checkout&quot; option to one of your menu (= in my case &quot;checkout&quot;) - in the &quot;Module Assignment&quot; of my cart module set option to &quot;Only on the pages selected&quot; un-checked the menu that your have set through the &quot;Force a menu on the checkout&quot; option (= in my case &quot;checkout&quot;)  but now in the adress bar i get the following URLs: myshop.com/checkout/checkout/ myshop.com/checkout/checkout/task-step/step-0...x  1. is it possible to get rid of the double &quot;checkout&quot;? 2. is it possible to add custom text for &quot;task-step&quot; and &quot;step-0 ... x&quot;?  best regards")*

Hi,

As I can see in our logs, Nicolas added it to HikaShop, so this will be in the next release ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODUyNC1mZWF0dXJlcy1ob3ctdG8tZm9yLWNhcnQtY2hlY2tvdXQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")**
- [![olivnewton's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9482-olivnewton "View olivnewton's Profile") Topic Author
- [ Offline](/forum/user/9482-olivnewton)

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 4 months ago [\#164242](#164242) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[features how-to for cart &amp; checkout?](/forum/27-checkout/868524-features-how-to-for-cart-checkout?start=20#164242 "dear team, i was wondering how to accomplish the following  cart module: 1. &quot;show title&quot; is YES but its not showing (maybe because &quot;mini cart&quot; is YES?) 2. hide cart module if empty  checkout: i managed to hide cart on checkout (not an easy task, but it worked) created 2 menus: - hikashop &gt; product - hikashop &gt; checkout (this info was missing in mohameds description:   www.hikashop.com/forum/checkout/863039-n...-be-easy.html#129157 ) - in &quot;Hikashop-&gt;System-&gt;Configuration-&gt;'Checkout'&quot; used the &quot;Force a menu on the checkout&quot; option to one of your menu (= in my case &quot;checkout&quot;) - in the &quot;Module Assignment&quot; of my cart module set option to &quot;Only on the pages selected&quot; un-checked the menu that your have set through the &quot;Force a menu on the checkout&quot; option (= in my case &quot;checkout&quot;)  but now in the adress bar i get the following URLs: myshop.com/checkout/checkout/ myshop.com/checkout/checkout/task-step/step-0...x  1. is it possible to get rid of the double &quot;checkout&quot;? 2. is it possible to add custom text for &quot;task-step&quot; and &quot;step-0 ... x&quot;?  best regards")*

great thanks guys!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODUyNC1mZWF0dXJlcy1ob3ctdG8tZm9yLWNhcnQtY2hlY2tvdXQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
