Custom Fields Not Showing In Item/Product View

  • Posts: 59
  • Thank you received: 0
10 years 1 month ago #192674

That solution works in the product as does the original but not in the module. the html is not reaching the module in the side bar as you can see from this extract of code. If it was a setting issue the custom code would be hidden. if the plugin was not working it would not work in the product...

<div class="hikashop_container">
<div class="hikashop_subcontainer thumbnail">
<div class="hikashop_product_image" style="height:300px;text-align:center;clear:both;">
<span class="hikashop_product_price_full"> Please enter your donation amount here</span>
<form name="hikashop_product_form_11_hikashop_category_information_module_189" method="post" action="/hikashop-menu-for-module-189/product/updatecart">
<div class="hikashop_product_stock">
<a class="hikashop_cart_button" onclick="var field=document.getElementById('hikashop_product_quantity_field_2');return hikashopModifyQuantity('11',field,1,0,'cart',189)" href="#" rel="nofollow">Add to cart</a>
<input id="hikashop_product_quantity_field_2" class="hikashop_product_quantity_field" type="hidden" name="quantity" value="1">
</div>
<input type="hidden" value="11" name="product_id">
<input type="hidden" value="1" name="add">
<input type="hidden" value="product" name="ctrl">
<input type="hidden" value="updatecart" name="task">
<input type="hidden" value="L2hpa2FzaG9wLW1lbnUtZm9yLW1vZHVsZS0xODkvY2hlY2tvdXQ%3D" name="return_url">
</form>
</div>
</div>

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
10 years 1 month ago #192766

Hi,

You're mistaking. It has nothing to do with the plugin.
The plugin only modify the price of the product with what you enter in the field.
If you don't see the field in a listing, it's just because you have the "Display custom item fields" option of the listing turned off.
Go in the menu Display>Content menus/modules, edit your menu/module and turn on the option and that will display (unless you have a view override on the product view files with really old code where the item fields were not displayed on the listings and in that case you would have to remove the override of the view file to see the field, but it's a lot more likely that you just have that option turned off).

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

  • Posts: 59
  • Thank you received: 0
10 years 1 month ago #192845

I have gone through all the settings and they are all on...

I think your second suggestion could be the key.... How can this be checked... I am happy to give you access if you need it

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
10 years 1 month ago #192864

If you believe that you've activated the display custom item fields option of all your products listings menus/modules and that it didn't help, then rename temporarily the folder templates/YOUR_TEMPLATE/html/com_hikashop/product to something else via FTP. That will deactivate all the view overrides for the display of the products on the frontend and the system will then use the original view files of HikaShop. If that fixes the problem, then repeat the procedure with each file in that folder in order to find the file override causing that problem. Then, save your modifications for that file and reapply them to the new version of the view file via the menu Display>Views.

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

  • Posts: 59
  • Thank you received: 0
10 years 1 month ago #193034

I have no overrides on the template...


OK ... it does not look like I am going to get anywhere with this... I might just have to try another system and that works properly

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

  • Posts: 30
  • Thank you received: 1
10 years 1 month ago #193050

Thanks for all the help. I can confirm that the revised custom amount plugin with the "choose your own column name" works and is passing through to the checkout as expected.

What I'm having problems with now is the update of the "mini cart" module. I want people to stay on the page and add multiple versions of this item to their cart before heading to checkout. When I hit the "add to cart", the mini cart doesn't always update. I can't figure out what is triggering. Some times it updates, sometimes it doesn't. The frequency of it not updating is too regular to ignore and hope nobody notices. I've tried playing with cache settings, turning them on and off etc. both in plugin settings and global configuration... any ideas what could be causing this? Is there something in the custom price script that may prevent the mini cart from updating every time?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #202317

Hi,

Are you using the Ajax when adding to the cart ? (settings in Configuration > Main > Advanced settings).
If it is, do you have many cart modules displayed on the same page ? if yes, this is not compatible.

If the page reloads when adding a product to the cart, so you are not using the ajax method, it looks indeed like a cache issue.
So you have to disable the cache in Joomla settings, Joomla plugin, potentially template cache too. And clear cache in Joomla and in your browser.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum