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

Adding a graphic

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 11-17-2017, 06:14 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,060
 

Default Re: Adding a graphic

Yes, I would always prefer to work with ftp, but just an FYI, you can do this through admin with Webmaster mode, and Edit Templates.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #22  
Old 11-17-2017, 06:35 AM
 
richardjknox richardjknox is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 44
 

Default Re: Adding a graphic

doh ... yes of course . .. thanks I'll have a look later
cheers
__________________
xcart 4.0
Reply With Quote
  #23  
Old 11-18-2017, 05:13 AM
 
richardjknox richardjknox is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 44
 

Default Re: Adding a graphic

hi

Thanks I can see how it works now ... and I can add images in.. but, need help on positioning.. eg this puts up a credit card image, but simply follows on from the last include ie best sellers.

<div style="text-align: center; margin: 25px 0 10px 0;">
<img src="{$AltImagesDir}/cards.gif" alt="We accept American Express, Visa, Master Card and Diners." />
</div>

Is there anyway of forcing it to be at a certain position .. ideally at the bottom of the right_bar.tpl ?

Cheers
rjk
__________________
xcart 4.0
Reply With Quote
  #24  
Old 11-18-2017, 08:24 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,167
 

Default Re: Adding a graphic

Hi again,

Which .tpl file are you working in?

Regards

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote
  #25  
Old 11-18-2017, 08:38 AM
 
richardjknox richardjknox is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 44
 

Default Re: Adding a graphic

hi

Thanks for getting back to me ...it ended up being :-

skin/common_files/customer/right_bar.tpl

The problem for me it looks bare as it I don't have the affiliates etc where they would normally show.. so I want to stick in some logo's and images to brighten it up

thanks
rjk
__________________
xcart 4.0
Reply With Quote
  #26  
Old 11-18-2017, 08:55 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,167
 

Default Re: Adding a graphic

Hi again,

I am using a different skin which is using all sorts of different includes / CSS.

However, here is a very basic version of what I use for Credit Card Logos. Perhaps try this in your skin/common_files/customer/right_bar.tpl and adjust via CSS?

{*right_bar.tpl*}
Code:
<div class="payment_logos_new"> <ul><li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/paypal.png" alt"PayPal">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/amex.png" alt="Amex">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/mastercard.png" alt="MasterCard">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/maestro2.png" alt="Maestro">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/switch2.png" alt="Switch">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/visa.png" alt="Visa">&nbsp;</li> <li><img class="lazy" src="{$ImagesDir}/spacer.gif" width="48" height="30" data-src="{$AltImagesDir}/payment/visae.png" alt="Electron"></li> </ul> </div>

CSS
Code:
/* NEW PAYMENT LOGOS HEADER -------------------------------*/ div.payment_logos_new ul { text-align: center; margin: 0; margin-top: 0px; margin-bottom: -10px; padding: 0; } div.payment_logos_new ul li { display: inline-block; padding-right: 0px; padding-top: 6px; } div.payment_logos_new ul li span { white-space: nowrap; text-indent: 9999em; overflow: hidden; } div.payment_logos_new ul li img { min-width: 48px; min-height: 30px; border-radius: 0px; }

Hope it helps a little?

Kind regards

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote
  #27  
Old 11-19-2017, 03:16 AM
 
richardjknox richardjknox is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 44
 

Default Re: Adding a graphic

hi thanks

I can now insert the images into the RIGHT_BAR.TPL but what I really need to be able to do is to position it at the bottom of the box.

What happens now is that it just follows the include which is RECENTLY VIEWED. As a result images vary position depending on how the RECENTLY VIEWED has been filled.

Is it possible to define where an image can go ?

thanks
rjk
__________________
xcart 4.0
Reply With Quote
  #28  
Old 11-19-2017, 12:46 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Adding a graphic

Code:
#right-bar .payment_logos_new { position: absolute; bottom: 0;
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
ITVV (11-19-2017)
  #29  
Old 11-21-2017, 09:39 PM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,167
 

Question Re: Adding a graphic

Hi,

Did @cherie CSS do the trick for you?

Kind regards

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote
  #30  
Old 11-25-2017, 05:19 AM
 
richardjknox richardjknox is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 44
 

Default Re: Adding a graphic

Hi .. not really, I guess at the end of the day this is where you need to be a programmer .. which I'm not ....

But thanks for all the help anyway.

But the other (or major) problem I have is the import.php. You can set errors say = 100 but if there's one image that's wrong, then the whole thing stops, without importing anything, which is very frustrating, especially as we have 1000's of images to import !

There is a fix on here for v4.11, but I'm on v4.6, and the import.php code looks totally different.

I did buy the BCSEngineering import module for a whole lot of $$$, but they tell me it can't be installed, blaming my hosting company. So ended up being a waste of money, as I can't use it.

Any help on the import.php would be greatly appreciated

Thanks
rjk
__________________
xcart 4.0
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 07:02 PM.

   

 
X-Cart forums © 2001-2020