Post by garyw75 » Sun May 22, 2016 4:27 am

The editor doesnt save your changes if source is left selected

New member

Posts

Joined
Thu May 12, 2016 7:59 pm

Post by straightlight » Sun May 22, 2016 7:57 am

Would it be possible to elaborate the encountered issue a little bit?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by garyw75 » Sun May 22, 2016 11:18 pm

Edit a product description using the editor in view source mode.

Image

Save the product.

You will see the changes you have made have not been saved.

You have to toggle the view source button off after you have made your adjustments and then save the product to get the description to save.

The editor is Opencart 1.* did not do this. It would save things regardless if it was in source mode or not

New member

Posts

Joined
Thu May 12, 2016 7:59 pm

Post by straightlight » Mon May 23, 2016 12:13 am

In admin/model/catalog/product.php file,

find twice:

Code: Select all

description = '" . $this->db->escape($value['description']) . "'
replace both with:

Code: Select all

`description` = '" . $this->db->escape($value['description']) . "'
This should resolved the problem.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by garyw75 » Mon May 23, 2016 10:44 pm

Thanks very much. I will adjust

New member

Posts

Joined
Thu May 12, 2016 7:59 pm

Post by garyw75 » Wed May 25, 2016 4:27 pm

I am afraid this code edit you suggested didnt work

New member

Posts

Joined
Thu May 12, 2016 7:59 pm

Post by straightlight » Wed May 25, 2016 8:22 pm

Option 1: On the same file, above the 2nd instance of:

Code: Select all

$this->cache->delete('product');
(in the editProduct method), add:

Code: Select all

exit;
Run the edit save changes again and see if you notice on screen any error messages. If so, please paste them on your next reply and remove the exit; command afterwards.

Option 2: Check your admin error logs and see if you notice a recent error message on the top based on the product.php model file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by platinum » Wed Aug 10, 2016 7:01 am

I need help on this as well. I don't understand the 'exit code' you speak of. The $this->cache->delete('product'); shows up 3 times in that file.

Any more advice.

Newbie

Posts

Joined
Thu Nov 03, 2011 9:15 am

Post by straightlight » Wed Aug 10, 2016 7:32 am

platinum wrote:I need help on this as well. I don't understand the 'exit code' you speak of. The $this->cache->delete('product'); shows up 3 times in that file.

Any more advice.
On my instruction above, I did indicated the 2nd instance of

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 6 guests