Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Apr 2022 08:20 AM by  Fred Hammett
Buying Guide label in resource file
 7 Replies
Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12
Author Messages


New Member


Posts:19
New Member


--
19 Apr 2022 10:34 AM

Possible related issue:  I have a ProductDetail template named ProductDetailHardCodedTab. I changed the LocalizeString code in this template to my desired tab value as a workaround.

I have set this as the default template under Configuration->Product Detail.  Now when i view a Product Detail page for a product that DOES NOT have a Display Template set, I get the tab name reverting to Buying Guide in the mobile view.

But if i set the Display tempate to ProductDetailHardCodedTab on the Product page, it works correctly. Same name in both views.

This seems contrary to the design of the Storefront and makes me think i missed something.  Seems there should be no difference in the display template for the scenario i described.

0


Veteran Member


Posts:2951
Veteran Member


--
19 Apr 2022 10:46 PM

You should see BuyingGuideLabel.Text resource key under:

Local Resources\DesktopModules\Revindex.Dnn.RevindexStorefront\Portals\_default\Display\ProductDetail\StandardRegular\App_LocalResources\Display.cshtml

If you're using a custom template, it would be located in the same path except replacing _default with your portal number. 

Are you changing it from a different place? 

if it's missing the BuyingGuideLabel.Text resource key, you can try adding it to the resource file. 

I think you may have said you tried this so I suspect you may be running a custom template but maybe just not aware of it.

One way is if you find custom templates (see the path under your portal number instead of _default path), try adding a dummy HTML text (e.g. "Hello world" into the cshtml file and see if it prints on screen for the product.

Custom templates can be applied at the product level, at the module setting level and under the Configuration > Product detail level with each one overriding the setting of the other in their respective order. 

I hope this helps.

0


New Member


Posts:19
New Member


--
20 Apr 2022 08:20 AM
Thanks for your support.
I did forget about the Product Detail Module having the optional setting for a display template. I did set that and that does explain where my template setting was overridden.

I'm changing resource files at .\DesktopModules\Revindex.Dnn.RevindexStorefront\App_LocalResources.

ProductVariantControl.ascx.resx and ProductControl.ascx are files.

So i guess that explains the issue if i must change the display.cshtml stored with the template instead.

I assummed the files i'm changing apply globally. I get most of the results I expect such as the tab names on the Product data entry screen changing.

I'll take another look with this new information
thanks
fred
0
You are not authorized to post a reply.
Page 2 of 2 << < 12