How long cart_status will be disabled?

  • Posts: 1119
  • Thank you received: 114
7 years 2 months ago #279008

Hi,

I see that after hikashop 3 release checkout cart_status view use same show_block_cart view. This makes no possibility to customise show_block_cart independently from cart_status.

I remember that Jerome said that this will be for a while until some modifications will be done somewhere...

Can someone please clarify the situation?

Thanks

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

  • Posts: 200
  • Thank you received: 75
7 years 2 months ago #279020

Hi,

the situation hasn't really changed compared to Hikashop 2, the old cartstatus view directly loaded the file cart.php and therefore also used the same file for both the cart and cart status just as it is now.

It is definitely possible and quite easy to customise show_block_cart "independently" from cart status with HS3.
All you need to use is

if(empty($this->options['status'])) {
	//YOUR CODE
}
around any code that you don't want to appear in your cart status.
And vice versa use if(!empty($this->options[ 'status' ])) for any stuff that you want to have only in your cart status.

Hope that helps.

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

  • Posts: 1119
  • Thank you received: 114
7 years 2 months ago #279021

Hi,

Thanks GW for your message.
I am already doing like you suggested with your code but I do afraid that later they will enable cart_status view and you will have to redo all customizations...

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #279023

Hello,

The idea for the next improvements in the checkout would be to provide more "settings" for the different blocks.
For example, a setting so you can activate or not the display of "product images" in a specific cart block in your workflow.
The "cart status" is no more since it is now a "cart" with the setting "read only" activated.
So no, they won't be any "cart status" view in the future ; on the contrary, the "cart status" block will be removed and replace by the "read only" setting.
And yes, the customization need to use the code that GW gave you ; it's that code which is currently used in the view to make the differences of that "read only" option.

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: 1119
  • Thank you received: 114
7 years 2 months ago #279062

Hi,

Thanks Jerome for the clarification. Thats what i wanted to know.

Kind Regards

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

Time to create page: 0.056 seconds
Powered by Kunena Forum