Post by aneroxic » Mon Nov 03, 2014 4:51 pm

hi there, im lost as to what steps are needed to add alt text to the product images. can someone kindly run me through the steps?

Newbie

Posts

Joined
Mon Nov 03, 2014 4:45 pm

Post by parsonslabs » Wed Jan 28, 2015 6:41 am

I was getting an error when using your latest file attachment (I am on version 2.0 of opencart btw), I found a missing bracket on the file: image_alt_and_title_text_catelog_model.xml on line 25:

old:

Code: Select all

$query = $this->db->query($query);]]></add>

new:

Code: Select all

$query = $this->db->query($query);]]}></add>


below is a screenshot of the bracket as well, adding this fixed my problem and everything working like a charm. This is a great modification and I am super pleased for your exceptional work cosmo. THANK YOU!! ;D

Image


BTW I also found a missing parenthesis on file:
image_alt_and_title_text_admin_controller.xml on an array between lines 29-34:

Code: Select all

			
<add><![CDATA[$this->data['product_images'][] = array(
	'image'      => $image,
	'thumb'      => $this->model_tool_image->resize($image, 100, 100),
	'sort_order' => $product_image['sort_order'],
	'image_alt_text' => $product_image['image_alt_text'],
	'image_title_text' => $product_image['image_title_text']]]></add>
I did not add the closing parenthesis to this array as I wasn't sure if it was necessary to or not, if I have any further problems I'll try adding it as such:

Code: Select all

			
<add><![CDATA[$this->data['product_images'][] = array(
	'image'      => $image,
	'thumb'      => $this->model_tool_image->resize($image, 100, 100),
	'sort_order' => $product_image['sort_order'],
	'image_alt_text' => $product_image['image_alt_text'],
	'image_title_text' => $product_image['image_title_text'])]]></add>

Newbie

Posts

Joined
Wed Jan 28, 2015 6:30 am

Post by kaftanka » Thu Apr 23, 2015 10:17 pm

Hello..could I possibly have a link to the latest version please..thanks

Newbie

Posts

Joined
Tue Nov 13, 2012 6:12 pm
Who is online

Users browsing this forum: No registered users and 2 guests