Jump to content
Latest News: (loading..)

Recommended Posts

Is there a module or implementation for image caption for a BS shop?
Image caption = show text over the image when popped up

As far I know the HTML content input field is meant to add videos right?

Share this post


Link to post
Share on other sites
On 10/11/2018 at 12:38 PM, Moxamint said:

At the time the addon involved an update to the image gallery script but then I found an issue on their github with loads of people requesting it and my changes were pulled into their master so if Gary updated the version since it should be there already... iirc it uses the image title as caption.

Most of the addon is about being able to record your caption text against a product image in admin - you could choose to display it a la Zahid if you prefer.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (2.3.4.1 CE) here: https://github.com/gburton/Responsive-osCommerce/archive/2341-Frozen.zip

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Mine is a very simple attempt at using pop-overs. Bootstrap lets you do a lot more. Check out this article that show how to do it properly.

Could be use to show product stock or any other info in the db when image is hovered over. Could also be used on product listing on index to give quick view of products.

https://www.phpzag.com/load-dynamic-content-in-bootstrap-popover-with-ajax-php-mysql/

Load Dynamic Content in Bootstrap Popover with Ajax, PHP & MySQL

image.thumb.png.277ae092f58473ad279006e465927d0c.png


 

Share this post


Link to post
Share on other sites

I finally decided to implement product image descriptions for Osc BS 2.3.4.1 CE

This modification is based on the BS 2.3.4.1 CE package dated on Aug 28,2018.

After this modification you can add an optional image description for each image
in each catalog language.
The desciprion is shown under the product name in the picture gallery.
The picture gallery "Image current/total" text is also translatable.

The cboxTitle are is enlarged in user.css.

Implementation steps are (please see the enclosed installation instructions):

1. create the table "products_images_description"
2. modify the following files:

-admin/includes/languages/english/categories.php
-admin/includes/functions/general.php
-admin/categories.php
-admin/includes/database_tables.php
-admin/includes/stylesheet.css (optional)
-admin/includes/template_top.php (optional)

-user.css
-ext/colorbox/colorbox.css
-includes/database_tables.php
-includes/languages/english/product_info.php
-includes/modules/content/product_info/cm_pi_gallery.php
-includes/modules/header_tags/ht_product_colorbox.php

The admin product preview image gallery is based on this addon:
Protected Images for osC2_3_4 by Kevin L. Shelton 7-24-10
revised 5-18-2018

I have tested the mod by copying and deleting products and categories.

 

mod_product_images_description.zip

 

Edited by vmn
wrong file

Share this post


Link to post
Share on other sites

Instead of all those core code changes ... I'd have simply created a new product_info CM module for the gallery ... and used the standard HTML input box for the image text. 

Have I over-simplified it? What am I missing ?


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
5 minutes ago, burt said:

Instead of all those core code changes ... I'd have simply created a new product_info CM module for the gallery ... and used the standard HTML input box for the image text. 

Have I over-simplified it? What am I missing ?

only multi-language support


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (2.3.4.1 CE) here: https://github.com/gburton/Responsive-osCommerce/archive/2341-Frozen.zip

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
Just now, BrockleyJohn said:

only multi-language support

That can be done using the HTML input box...

{ "en":{"caption": "Hello"}, "fr":{"caption": "Bonjour"} }

And then picking up the correct piece of data using the created P_I CM module.

Following not aimed at you

We must get away from the old ideas and instead explore new and interesting ways to do things. 


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

One bug so far.

Escape slashes in the product name as follows:

in includes/modules/header_tags/ht_product_colorbox.php
find
                        $(this).parent().attr("title", "' .$product_info['products_name'].'<br>" + $(this).attr("alt"));
replace with                        
                        $(this).parent().attr("title", "' .addslashes($product_info['products_name']).'<br>" + $(this).attr("alt"));

and in admin/categories.php

find
        $(this).parent().attr("title", "<?php echo $pInfo->products_name. '<br>';?>" + $(this).attr("alt"));
        
replace with
        $(this).parent().attr("title", "<?php echo addslashes($pInfo->products_name). '<br>';?>" + $(this).attr("alt"));

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×