Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

anyone know where this code is?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-13-2014, 11:37 AM
 
frank_s frank_s is offline
 

Advanced Member
  
Join Date: Oct 2010
Posts: 35
 

Default anyone know where dpimages-icon-box code is ?

I am in the process of uploading products to a new site and when adding to the detailed images they are being placed not inline.
example:
12
3

I would like them to be:
123

I have tried using firefox and it is showing the code to be

.dpimages-icons-box {
width: 170px;

location: http://www.xxxxxxxx.com/product-id/ line 26


By doing a live update in Firefox and changing width: to 270px
it will bring the images inline.

I have tried using webmaster and going through all the .tpl files
also have looked through main.css,altskin.css and colorbox.

Can anyone tell me where to locate and make changes to:

.dpimages-icons-box {
width: 170px;

Thank you in advance for any and all answers.

Frank
__________________
X-cart Gold
4.6.4
Reply With Quote
  #2  
Old 08-13-2014, 06:43 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: anyone know where this code is?

Frank, I do not have the front end of a site to look at right now, but I believe this code is assigned using the $custom_styles array.

Look in:
modules\Detailed_Product_Images\product_images.php

Search for:
$custom_styles['.dpimages-icons-box'] = array(
'width' => $box_width . 'px',
);

An alternative to changing this logic, would be to simply assign another CSS class to the box. I would add an additional class, and reference it more implicitly, rather than taking the class away and wondering if I messed up some JavaScript associated with it perhaps.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 08-13-2014, 11:24 PM
 
frank_s frank_s is offline
 

Advanced Member
  
Join Date: Oct 2010
Posts: 35
 

Default Re: anyone know where this code is?

totaltec

Thank you for your reply your answer put me close enough to find a solution.

I looked in modules\Detailed_Product_Images\product_images.php
and found the following ($icon_max_width + 10); and changing the +10 to +50 did the trick.

Thank you also for your suggestion on adding a css class for the box.

I think with this minor of a change I should be allright I have documented this change in case any irregularities show up.

Frank
__________________
X-cart Gold
4.6.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:36 PM.

   

 
X-Cart forums © 2001-2020