- Posts: 220
- Thank you received: 10
Tell me how to implement the same product card?
-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.0
-- Browser(s) name and version -- : Opera
Added width through options. How to do something like this in the picture? Website:
Based on the example, the calculation is the length multiplied by the width and multiplied by the price.
I understand it needs to be implemented somehow through the field or options?
Could you help me make this functionality? For a specific product category?
Please Log in or Create an account to join the conversation.
I would recommend having custom fields of the table "item" to allow the customer to select / enter something in them. Here is an example of our demo website with custom item fields:
demo.hikashop.com/index.php/en/hikashop/product-page/with-form
And here is the documentation on custom fields:
www.hikashop.com/support/documentation/4...shop-field-form.html
You'll see you can restrict them to only some categories.
You'll want to combine this with the price calculations plugin from our marketplace:
www.hikashop.com/marketplace/product/148...ce-calculations.html
It allows you to setup a formula for the calculation of the price based on the base price and the value of custom item fields.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can use a translation override to do this.
Note however that this text comes from the language file of the plugin itself, not the language file of HikaShop. So you won't find it if you look at the language file of HikaShop under the Languages tab of the HikaShop configuration.
You need instead to use Joomla's translation system:
docs.joomla.org/J3.x:Language_Overrides_in_Joomla
Note also that you can directly find the language file for the plugin in the administrator/language/en-GB folder via FTP. Copy it and rename it in your other language folder and change the text in it and you'll have the plugin texts in your language.
Also, if you share your language file for the plugin, we can directly include it in the install package of the plugin so that other users using your language on their Joomla website will directly have it when installing the plugin.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If you look under the networks tab of your developers tool, you can see that the AJAX request sent by the javascript of the plugin to the PHP of the plugin on the server returns a 500 HTTP error, with a HTML content of a fatal error page:
i.imgur.com/bj7S6L7.png
However, as the "debug" setting of the Joomla configuration is not turned on, it's only the short error message, which doesn't provide all the necessary information to understand what's going on.
From the short error message, it seems to be linked to your version of PHP, the formula(s) that you provided in the plugin, and the data being processed along with the formula.
Could you activate the "debug" setting so that we could get the full error message there ?
Could you provide a screenshot of the formula(s) you're using so that we get a better understanding of the situation ?
Please Log in or Create an account to join the conversation.
Debugging turned on
Please Log in or Create an account to join the conversation.
Thanks. The issue is actually in HikaShop, not the plugin. I've made a patch in HikaShop's code which should fix the problem.
Download again the install package of the latest version of HikaShop on our website and install it on yours and you'll get the patch.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Since I'm not able to reproduce the issue on my end, could you provide a backend and a FTP access so that we could check the situation and do some debugging ?
Please provide these via our contact form:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
Thank you for the access. I was able to found the new problem. It was a small issue with the handling of the custom field input value in some cases.
It's now working on your product page.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes. The fix was in the plugin, not in HikaShop, this time. I've also published a new version of the plugin with the fix so even if you update it in the future, the issue won't reappear.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.