Custom Display Views not working after upgrade to 4.4.0

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
3 years 11 months ago #327546

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4.13

We have view customization for our template for coupon (module loaded and text message that appears on the bottom of the cart page).

Upon upgrading to 4.4.0 this no longer appears.

I tried adding additional view customizations in other areas and none seem to be working.

Please advise.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #327548

Hi,

With the 4.4.0, we added the support of Joomla 4, and with it, we also removed the old "add to cart legacy" and "checkout legacy" settings of the HikaShop configuration.
So if you were using them because of old view customizations, you are now using the new add to cart and checkout systems (which were added with the 3.0.0, so they've been legacy for several years now) and thus you need to redo the customization for the new views used by them.
Adding view customization is still working the same as before and no one reported any problem with it since the 4.4.0 was release. So if you have a problem with the creation of view overrides, it's probably something linked to your server setup (files/folders not writable, or security mechanism preventing the reception of the modified PHP code by the server).

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

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
3 years 11 months ago #327561

They are working on the same server with the previous version of Hikashop. We use a staging copy to test software installs. The overrides were working on the staging copy as well and stopped with the upgrade to 4.4.0.

The folders are all writable and I confirmed that the com_hikashop/checkout/coupon.php is inside the template's html folder.'

I also deleted the override and re-created it. Still does not work.

Any ideas on why this would occur?

Last edit: 3 years 11 months ago by dustinjc.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #327588

Hi,

Well, I already explained in my previous message.
The checkout / coupon.php view file is a view file from the legacy checkout.
The legacy checkout has been removed from HikaShop.
So that view file, and its override are not used anymore by HikaShop.
The coupon view of the checkout is now displayed by the checkout / show_block_coupon.php view file.
So if you want to customize it, you need to edit that new view file.

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

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
3 years 11 months ago #327712

Understood. I didn't catch that the override was in a new file.

I copied the customization from coupon.php to show_block_coupon.php and it is now appearing as expected.

Thank you for your help.

Last edit: 3 years 11 months ago by dustinjc.

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

Time to create page: 0.047 seconds
Powered by Kunena Forum