Jump to content

[Free module / widget] Additional second category description


Recommended Posts

Outstanding! Thank you so much.. can you pls confirm the code is clean as dont have the skill to check for links/malware. I will make a small donation to your account listed in the module once you respond

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...
On 12/13/2018 at 10:16 AM, creaclaire said:

Hello.

I install your module and put the texte in category.tpl. But when i make a text in second description (BO), the text don't stay in memory, and disappear.

What can i do ?

Best regards

 

Hello,
I have the same problem.
Have you found a solution?

Share this post


Link to post
Share on other sites

It may be related to the general problem of older version of prestashop when saving data in backoffice in various browsers.

If you can update the core - update it.

If not - try this: take the "admin" folder from prestashop 1.6.1.23, upload it on your server as a new folder on the side of the current one, log in through it and check if the error is still there.

Share this post


Link to post
Share on other sites

Hi Daresh,

Thank you for your time.

I did some tests and it seems that :

  • The module works when I write my text directly in the BO field but .
  • The module doesn't work when I COPY/PASTE some text from an external source (even if the text is clean => weird)
  • I have to clean cache after saving my description text in order to see it on FO page.

I don't understand why copy/paste doesn't work. I check the source code of my text when I pasted it in BO field and it's clean so it should not be a problem for saving it.

EDIT : BO -> performances settings : I checked Force compilation on smarty and now my description is showing.

Edited by Alain D. (see edit history)

Share this post


Link to post
Share on other sites

Ok I'll try your manipulation

Quote

try this: take the "admin" folder from prestashop 1.6.1.23, upload it on your server as a new folder on the side of the current one, log in through it and check if the error is still there.

I'll come back to post my result ASAP.

Edit : I tried, but the problem is still the same.

Edited by Alain D. (see edit history)

Share this post


Link to post
Share on other sites

Essentially this is a great module that does help a lot for our customers and SEO, thanks!

Sadly I am having the same problems. It's really weird: I have tried several things but it is just not clear when the given text will be saved, and when not.  (I'm working in a multistore setup, on 1.6.1.17)

Share this post


Link to post
Share on other sites

I believe you, but still can't recreate this situation on my setup. So if any of you have some dev shop where this occurs and could give me access so I can make some tests that would be great! :)

Share this post


Link to post
Share on other sites
7 hours ago, elmoxx said:

Essentially this is a great module that does help a lot for our customers and SEO, thanks!

Sadly I am having the same problems. It's really weird: I have tried several things but it is just not clear when the given text will be saved, and when not.  (I'm working in a multistore setup, on 1.6.1.17)

Well, I thought it was the Deprecation] of Synchronous XMLHttpRequest but if the problem persist on a 1.6.1.17 version it might be something else.

Just to be sure, elmoxx, if you open the console of your browser when you are in the BO category page, do you see something like this ?

Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

 

Since prestashop 1.6.1.9 the [Deprecation] of Synchronous XMLHttpRequest is supposed to be fixed so it sshould not be present in your Ps version.

Share this post


Link to post
Share on other sites

The module, no. But do you know if prestashop use Ajax during the saving process ?

I thought it could be a part of the main problem. Well now I'm out of idea.

I'll try to update Ps version to the last 1.6 and check if the problem persists.

Edited by Alain D. (see edit history)

Share this post


Link to post
Share on other sites
33 minutes ago, Idroclic said:

hi.. i test the module but i have the same problem of the other.. When i try to save a long html text this is deleted.. Nobody solve it? I use prestashop 1.7

Hi, did you write the text directly in the BO page or did you copy/paste it from an external document ?

 @Idroclic

Share this post


Link to post
Share on other sites
32 minutes ago, Alain D. said:

Hi, did you write the text directly in the BO page or did you copy/paste it from an external document ?

 @Idroclic


I find the problem!

The charater  '  make problems with the save of the description.. I replace it with the ′ and the save function working..

I hope to help someone with this suggestion!

Edited by Idroclic (see edit history)

Share this post


Link to post
Share on other sites
On 3/8/2019 at 3:23 PM, Idroclic said:


I find the problem!

The charater  '  make problems with the save of the description.. I replace it with the ′ and the save function working..

I hope to help someone with this suggestion!

Hey ! Sorry I've been very busy this last days.
thank you for your contribution I will check this ASAP.

  • Thanks 1

Share this post


Link to post
Share on other sites
On 3/14/2019 at 9:51 AM, Daresh said:

I just updated the modules in the first post, please test it out :)

Hi Daresh, 

 

i have another problem.. if i insert html tag (<h1>,<p style:..>,..) when i save the text disappear after the save!

You can help me?

 

Tnx a lot!

Share this post


Link to post
Share on other sites
4 minutes ago, Daresh said:

Yes, it's caused by that function added to make the ' sign work :) I'll take a look how to solve it.

Tnx! For now i installed a older version ant it's ok!

I wait for u!

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...

That requires some scripting and styling, and also depends on how your theme looks, so I think it's a task for some frontend developer.

Share this post


Link to post
Share on other sites
Hello,

Bizare, I installed the module for prestashop 1.7 and added
{widget name = 'gmcatseconddesc'} in product-list.php
but the added text is not displayed?
Can you help me?

 

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...

I just installed 1.7.6. I see that category page got rewritten to Symfony and hook that the module used is not there any more so this method won't work, some totally new method of adding second category description would be required here.

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi @Daresh,

 

would you consider to join the Friends of PrestaShop organization ? This is an organization to share modules and resources for the PrestaShop developers => https://github.com/friends-of-presta

Feel free to join the Community Slack too, dm me so I can give you an invitation link.

Mickaël

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 5 months later...

Hi dear, 

 

i have one answer! I need to put the second description also in the manufacturer page's.. I see in the BO the second description form but nothing appear in the front office! I add the "{widget name='gmcatseconddesc'}" in manufacturer.tpl without success.. It's possibile to have this implementation? 

 

tnx

Share this post


Link to post
Share on other sites

hi, I have problem after saving second category, guest visitor cannot access the category page. For temporary solution I use tidy shop module to using "Assign all customer groups to all categories"

can you check it?

thanks

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello. Thank you so much for sharing. I installed it under Presta1.7.6.3, it works perfectly. For SEO it is really a good thing, and placed under the list of products, it avoids having too long text at the top of the page for users. thanks again

  • Like 1

Share this post


Link to post
Share on other sites
  • 2 months later...
  • 1 month later...

Hello, Thank you for this module ! It is well appreciated.

however, I've Prestashop 1.7.6.5 and the text is shown on every category page. I've checked your code and the following line always returns 0.

$p = (int) Tools::getValue('p');

How can we solve this issue ? 

Thank you!

Share this post


Link to post
Share on other sites

I'm using the version 1.7.6.5.

I've an issue when I want to create a new category after I've installed your module. 

I get the following error. The id_category is EMPTY. 

Do you know who we could fix this ?

image.png

image (1).png

Share this post


Link to post
Share on other sites

The module should have code securing it from a situation like that, please test with the latest version that I just uploaded to the first post of this topic.

I also fixed the 'page' variable issue there.

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...

Thanks for the module, just what I was looking for. I noticed 2 things, I am using PS 1.7.6.8 and version 1.0.5 of the module.

- The widget is shown on all category pages, not only on the first category page but also on every subsequent page. I read in the previous posts it should have resolved?
- After I add the 2nd description all is shown in the FO. When I change the 2nd description later, the FO is not updated. Only after I delete the cache the FO is updated. Is there anyway to make the change immediately without clearing all cache?
 

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...

Hi Daresh,

Thank you for this great module ! It's working very good.

However, I tried to add it to the footer so that it can be displayed over the entire width of the page and it's displaying strangely there : the same text of the last category text updated is shown on every category.

Do you know if there's a way to make it work well in the footer ?

I'm really sorry because you offer a great free module and we keep asking you for issues 🙈

Thank you very much for your help.

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...

Hi, i'm having an issue with the module:

PS 1.7.6.8 - @Daresh It seems like i'm having the same issue Xionoxid did with empty category_id while creating new category. 

I've downloaded the module from  http://greenmousestudio.com/en/cat-desc and it seems it still contains version without the bug fix.

Could you once again provide the newest version of the module?

Thanks in advance.  :)

 

 

 

Share this post


Link to post
Share on other sites