- Posts: 10
- Thank you received: 0
Problem with the Custom Field Price Plugin
3 weeks 3 days ago #100000622
by Ritsch
Problem with the Custom Field Price Plugin was created by Ritsch
-- HikaShop version -- : 6.8.1 Bussines
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.3.36
-- Browser(s) name and version -- : Chrome 157.0
Hello,
I am having an issue with the Custom Field Price plugin. When placing an order for a T-shirt, the price of 21.90 is displayed once the size and color are selected.
However, if a name print option (costing 1.79) is selected, this amount is not added to the total in the shopping cart. When editing the item within the cart, it becomes apparent that the selection for the name print was not saved. Although it is possible to set the option to "yes" there, the 1.79 is still not added to the price. The Custom Price plugin is enabled and configured.
I would appreciate your urgent assistance. Thank you in advance.
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.3.36
-- Browser(s) name and version -- : Chrome 157.0
Hello,
I am having an issue with the Custom Field Price plugin. When placing an order for a T-shirt, the price of 21.90 is displayed once the size and color are selected.
However, if a name print option (costing 1.79) is selected, this amount is not added to the total in the shopping cart. When editing the item within the cart, it becomes apparent that the selection for the name print was not saved. Although it is possible to set the option to "yes" there, the 1.79 is still not added to the price. The Custom Price plugin is enabled and configured.
I would appreciate your urgent assistance. Thank you in advance.
Attachment not found
Attachment not found
Attachment not found
Please Log in or Create an account to join the conversation.
3 weeks 3 days ago #100000626
by nicolas
Replied by nicolas on topic Problem with the Custom Field Price Plugin
Hi,
The Custom Field Price plugin only adds its price when the value of the field is saved with the product in the cart. In your cart the T-shirt has no value at all for "Name Vorderseite" (that is why the edit window shows "Nein"), so the values of your item fields were not sent when clicking "In den Warenkorb".
This happens when the site template contains an override of the HikaShop product page made before HikaShop 6.4.0: in 6.4.0 the product page form was restructured, and an old override of show_default.php prints the custom item fields outside of the form, so the browser did not send them. The size and colour still worked, which is why the right variant arrived in the cart at the base price.
HikaShop now sends these fields even with such an old override. This is fixed in the latest build of HikaShop 6.8.1: download it from your account on our website and install it over your current HikaShop (same version number, so Joomla's updater won't offer it; your settings are kept). Then add the T-shirt to the cart again with "gedruckt": the cart line shows "Name Vorderseite: gedruckt(+1,79€)" and the 1,79 € is added.
We still recommend updating that override, as an override made before 6.4.0 can cause other problems on the product page. In Components > HikaShop > Display > Views, select your site template and the view "product" and look for show_default.php (also show.php, show_quantity.php, option.php and show_block_characteristic.php): www.hikashop.com/support/documentation/4...op-view-listing.html
The edit page of an override shows the difference with the current HikaShop file ( www.hikashop.com/support/documentation/4...ashop-view-form.html ). Recreate the override from the current file and apply your changes to it again, or delete it if you no longer need it (keep a copy first).
If the price is still not added after the update, check that the value in the prices table of the Custom Field Price plugin is exactly the value of the field option (the first column of the custom field's values), and send us the address of a T-shirt page with a way to access it, as your shop is protected by a password.
The Custom Field Price plugin only adds its price when the value of the field is saved with the product in the cart. In your cart the T-shirt has no value at all for "Name Vorderseite" (that is why the edit window shows "Nein"), so the values of your item fields were not sent when clicking "In den Warenkorb".
This happens when the site template contains an override of the HikaShop product page made before HikaShop 6.4.0: in 6.4.0 the product page form was restructured, and an old override of show_default.php prints the custom item fields outside of the form, so the browser did not send them. The size and colour still worked, which is why the right variant arrived in the cart at the base price.
HikaShop now sends these fields even with such an old override. This is fixed in the latest build of HikaShop 6.8.1: download it from your account on our website and install it over your current HikaShop (same version number, so Joomla's updater won't offer it; your settings are kept). Then add the T-shirt to the cart again with "gedruckt": the cart line shows "Name Vorderseite: gedruckt(+1,79€)" and the 1,79 € is added.
We still recommend updating that override, as an override made before 6.4.0 can cause other problems on the product page. In Components > HikaShop > Display > Views, select your site template and the view "product" and look for show_default.php (also show.php, show_quantity.php, option.php and show_block_characteristic.php): www.hikashop.com/support/documentation/4...op-view-listing.html
The edit page of an override shows the difference with the current HikaShop file ( www.hikashop.com/support/documentation/4...ashop-view-form.html ). Recreate the override from the current file and apply your changes to it again, or delete it if you no longer need it (keep a copy first).
If the price is still not added after the update, check that the value in the prices table of the Custom Field Price plugin is exactly the value of the field option (the first column of the custom field's values), and send us the address of a T-shirt page with a way to access it, as your shop is protected by a password.
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds