Skip to main content

2 checkout page menu

8 years 9 months ago #287861 by aminweb
2 checkout page menu was created by aminweb
-- HikaShop version -- : 3.2.1

hi,
I have two product(PA & PB)
I publish currency switcher module in checkout page.now I want show this module only when PA product in the cart for checkout.
how do it?
is it possibile define two diffrent menu for checkout page for per product?

Joomla Developer | am.ebrahimzadeh[at]gmail.com

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

8 years 9 months ago #287864 by Mohamed Thelji
Replied by Mohamed Thelji on topic 2 checkout page menu
Hello,

I publish currency switcher module in checkout page.now I want show this module only when PA product in the cart for checkout.
how do it?

There's no option to do it for the moment, so it will require some code customization of the currency switcher's module.

is it possibile define two diffrent menu for checkout page for per product?


We can only define one menu for the checkout page for the moment using the "Force a menu on the checkout" option, so it will also require some development.

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

8 years 9 months ago #287934 by aminweb
Replied by aminweb on topic 2 checkout page menu
thanks.
please guide me to do it.(I publish currency switcher module in checkout page.now I want show this module only when PA product in the cart for checkout.)
so should be add if function in currency module ?
please send me shortcode for use If function . if (productid= XXX) {} .....
thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

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

8 years 9 months ago #287937 by nicolas
Replied by nicolas on topic 2 checkout page menu
Yes, you'll have to add that in the currency module view layout:
docs.joomla.org/Special:MyLanguage/J3.2:...r#Creating_Overrides
The code will be something like that:
Code:
$class = hikashop_get('class.cart'); $cart = $class->getFullCart(); $found = false; foreach($cart->products as $product){ if($product->product_id == 'XXX') $found = true; } if(!$found) return;

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

Time to create page: 0.058 seconds
Powered by Kunena Forum