Search found 25 matches

Search found 25 matches

Re: Adding custom alt text to product images

Looks like the template is malformed.
Make sure the img-tag is closed correctly and not before the alt-text-check.

Jump to post
  • Mon Jun 17, 2013 6:43 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Aaaaand another version where I've added custom alt and title text to all product presentations category page search page manufaturer page compare page bestseller module featured module latest module special module All templates needs to be updated accordingly to display the texts. If previously ins...

Jump to post
  • Thu Feb 21, 2013 11:45 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Ok, new version.

If previous version installled:

1. Replace all old xmls.
2. Run the migrate_product_image_text.sql (simply renames the product_id column in the custom table).

Keep posting any issues.

Jump to post
  • Thu Feb 21, 2013 12:14 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Found the issue, ambigous column names in the image text table and the product table. Both are named 'product_id'.
I will write a migration script for the db-table and update the vqmod-xmls accordingly.

So, today I learned to always specifically prefix your custom database tables!

Jump to post
  • Wed Feb 20, 2013 11:49 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Yes, I got another comment about that.
The error is confirmed and I will have a look at it as soon as I get a chance.

Jump to post
  • Wed Feb 20, 2013 1:57 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

That's because it needs to get the image text out of the image array.. foreach ($results as $result) { $this->data['images'][] = array( 'popup' => $this->model_tool_image->resize($result['image']........., 'thumb' => $this->model_tool_image->resize($result['image']........, 'alt_text' => $result['im...

Jump to post
  • Tue Feb 19, 2013 3:17 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Fixed the model and control for the product page presentation. Product page template file needs to be edited something like (example based on default schema): <?php if ($thumb || $images) { ?> <div class="left"> <?php if ($thumb) { ?> <div class="image"><a href="<?php echo $popup; ?>" title="<?php e...

Jump to post
  • Tue Feb 19, 2013 12:21 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

U need to alter the database request in the model-file (catalog/model/product )
I know I currently have an error in mine so I won't share it until it's fixed.

Jump to post
  • Mon Feb 18, 2013 3:46 am
  • Replies 42
  • Views 43410
Re: OpenCart 1.5.5 Bug Thread

I built my way around it. Prices in the store are displayed without decimals, ex: 200 kr Since the klarna module use the same currency function, the price is sent in the xml as 200. Klarna requires two extra zeros since it requests a double, so I need to send 20000 in the xml. Simply and ugly hacked...

Jump to post
  • Thu Feb 14, 2013 1:43 am
  • Replies 293
  • Views 170080
Re: OpenCart 1.5.5 Bug Thread

it might be soemthign to do with the price having 00 at the end. klarna likes you to send the amount in pence or cents. so 100.00 USD will be 1000 cents It might just be something at Klarna's end with handling amount without decimal places.. The request xml looks ok in terms of amount and sums, the...

Jump to post
  • Wed Feb 13, 2013 8:51 pm
  • Replies 293
  • Views 170080
Re: Adding custom alt text to product images

New version with a lot of bugfixes and tested for 1.5.4.1
Still only admin part ready.

Just replace the old .xmls

Jump to post
  • Tue Jan 29, 2013 4:06 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Another fix. Had an offset wrong.

File deleted

Jump to post
  • Sat Jan 26, 2013 12:02 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Ok, adjusted the template .xml
Just swap the file in the "vqmod\xml"-folder.

File updated.

File deleted

Jump to post
  • Wed Jan 23, 2013 11:37 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Editing the template file by vqmod is always a risky business since the template files are subject to more frequent change. I do actually prefer to edit the actual file rather than trying to mod it by xml. Also, that's the reason why the styling of the inputboxes are below standard. So, are you comf...

Jump to post
  • Wed Jan 23, 2013 4:00 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Hey. Sorry for the delay on this. I've completed the first steps. Moving it all to vqmod takes ages! Here is a first version, only admin steps so far. The sql-file creates a new table in the database for the texts. This is to make the mod completely reversible by just removeing the vqmod xmls. So ru...

Jump to post
  • Wed Jan 23, 2013 5:00 am
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

What version of OC do you have?
Changes are based on 1.5.3.1. But probably easy to adjust to adjacent versions.

I've completed the thing in admin, in core code. Just have to move the changes to vqmod and start with the catalog part of it, "just".

Tell me if you want to see the changed files.

Jump to post
  • Wed Jan 09, 2013 8:27 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Sorry, I don't at the moment. Had to remove the thing when migrating from 1.4 to 1.5.
I'll notify you when it's done and deployed.

Site is http://beadsbyme.se

Jump to post
  • Tue Dec 11, 2012 5:31 pm
  • Replies 42
  • Views 43410
Re: Adding custom alt text to product images

Hi Kaftanka

Since this change I have introduced vmod into the project. I would be willing to help you construct a vmod xml to accomplish the same thing.

Do you use vmod?

Jump to post
  • Sat Nov 17, 2012 12:02 am
  • Replies 42
  • Views 43410
Backwards compatability and javascript fragility

So, first of all. I do like Opencart for the administration design and ease of use. Compared to a lot of other e-stores Opencart is miles and miles ahead, still with a lot of improvement possibilities though! Been working with Opencart, pro bono, for a couple of years now and I just get so frustrate...

Jump to post
  • Tue Jun 12, 2012 1:27 pm
  • Replies 0
  • Views 540
Re: Adding custom alt text to product images

Changes have been made in the later versions, since my description. I just picked it up again (1.4.9.3) and redid the same thing, easier this time. Functions in the admin/model/catalog/product.php is now called addProduct($data) and editProduct($product_is, $data) Furthermore, for editing the catalo...

Jump to post
  • Wed Feb 02, 2011 3:48 pm
  • Replies 42
  • Views 43410

Search found 25 matches