RESOLVED: Read More Button on Products

  • Posts: 76
  • Thank you received: 1
12 years 5 months ago #51217

Hi again,

I have published the Read More Plugin and can see the button on my article pages but not on my product pages. Am I missing a setting somewhere to make visible this button in HikaShop?

Thanks

Scott

Last edit: 12 years 5 months ago by scottshort. Reason: RESOLVED

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51323

There is no read more button added by HikaShop on the front end, so that's normal. You can do like that to add it:
www.hikashop.com/en/forum/4-how-to/41781-read-more-button.html

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

  • Posts: 76
  • Thank you received: 1
12 years 5 months ago #51339

Hi Nicolas,
Sorry, but i have no code experience so if there is no way of putting button on my admin text editor in backend to automatically add this "read more" button on front end, then I will have to wait until I can review more on the code side before I try to do it manually. The only reason I posted my question about this was that I read on your tutorial Product and Variant Add/Edit THIS under the Description section:

Description : The description of the product. You can insert here joomla content tags and they will be replaced on the front end by their content plugins. If you activate the "read more" option of the configuration, you should see an additional button on the bottom of the description HTML editor allowing you to add a read more tag in the description ( alternatively, you can use the HTML tag <hr id="system-readmore" /> if you want to add the read more manually ). The text before the read more tag would be displayed on the listings of products displayed with the item box layout "image and description" while the full text would be displayed on the product page.

So I thought there must be a plugin to add a button to the editor. This is what i was trying to activate. You might need to revise the above doc if there is no "read more" option to activate.

Regardless, I tried to follow your post above and hacked the two files as instructed [see pics], however, I must be missing something further steps to finish the job... I also tried to insert the above tag [<hr id="system-readmore" />] into my text editor and instead of displaying a read more button on the category listing page, it displayed the button directly on the editor page and html code on front end. To make matters worse, I am still a bit confused on all the options for categories and products listings and could be making some errors there as well.

Conclusion: If there is no back-end button to add the front end 'read more' button, then I will hold off on this until I study more on the code side and the categories listings before I attempt to do it manually.

ps: If you see any major mistakes in the code i added [pics below] please let me know so I can delete it.

Thanks again and sorry for my lack of experience here.

Regards
Scott

Attachments:

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51442

The read more tag allows the system to cut the description for listings. Nowhere in that text does it says that the tag will add a read more button.

Your button code in the view file is fine, just make sure that you're editing the correct view file for the correct template of your front end.

For the description, you need to add the HTML code when your editor is in HTML mode... not directly in the text.

The following user(s) said Thank You: scottshort, ximbo

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

  • Posts: 76
  • Thank you received: 1
12 years 5 months ago #51595

Thanks Nicolas for visiting my test site...

1. Yes, I now understand how the read more 'tag' works, and my main concern was not getting a "read more..." button on my front end, as it was to get the "insert read more tag" button on my editor being concerned that because I am inexperienced with code that I was typing it in wrong... regardless, you found a way to add this button, so thanks!

2. Even though I "got lucky" with the code in that View File, I still do not know enough about code and views to do more so unless it is a must do, I will hold off on planning for any of these front end buttons for now. Can i leave the code that I changed for now, or should I change it back... I do not see a front end button as a result of these changes, although it might be due that I did not set up the view correctly yet.

3. HTML Editor 101: OK Thanks! Never type HTML code unless I am in HTML mode.

Thanks again
Scott

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51618

2. You can leave it like that, no problem.

The following user(s) said Thank You: scottshort

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

Time to create page: 0.066 seconds
Powered by Kunena Forum