Mass Action Export - Description has formatting

  • Posts: 44
  • Thank you received: 1
8 years 5 months ago #258414

-- url of the page with the problem -- : scarvesaustralia.com.au
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

When looking at the csv file generated through Mass Action I see that the field

"product_description"

has formatting included - see underneath:

"<p style=""text-align: justify;"">Navy Pink Scarf in lightweight cotton viscose. Navy blue print with pink highlights set on white background. Class and style exude from this beautiful swathe. You will feel smart and sophisticated!</p>"

This should become an automatic feed for another site to access the products and the formatting is not desirable. How can I solve this problem?

Thank you

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #258441

Hi,

There is no option to change that.
I would rather recommend to have a custom product field where you would store the unformatted description and use that field in your CSV.
It's a bit more work to manage but that way you can properly handle return carriages in the unformatted description.

If you really want to automate that, you would have to modify the code in the function _exportCSV of the file administrator/components/com_hikashop/classes/massaction.php

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

  • Posts: 44
  • Thank you received: 1
8 years 5 months ago #258490

I see...

I need to create a .csv file for another website to access my products and display them on their site. Also the .csv should be updating every day to reflect the changes in my shop.

Is there a better way to go about this? Is the Google Products plugin a viable alternative for this?

Thank you

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #258506

Hi,

The Google Products plugin will generate a XML file. But like for the CSV export, the description will contain the HTML tags. So it won't help.

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

  • Posts: 44
  • Thank you received: 1
8 years 5 months ago #258561

Thank you, I see.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum