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

Crisp White - adding a video (or other segment) to the home page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-14-2019, 02:06 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Crisp White - adding a video (or other segment) to the home page

Hi there

I am playing with XC5 and using Crisp White Skin, and I want to add a segment (predominantly for a youtube video) onto my home page between the category list and the featured products list.

I'll be honest, I can just about manage to fiddle with XC4 and add a few template files here and there, but with XC5 I don't have a scooby what to do.

I have installed the webmaster and custom skin modules, and I have managed to do a few basic things (like hiding weight and SKU), but beyond that, I'm struggling with the structure and how it all works. Pretty much all of it, actually.

If you have done this, or know how to do it (or something similar), could you share an 'Idiot's Guide'? I would probably need some fairly basic instructions, if basic instructions are enough for this platform.

Any pointers gratefully received.

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #2  
Old 02-14-2019, 02:52 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Crisp White - adding a video (or other segment) to the home page

Hi there.
The easiest way is to switch positions of the welcome block and featured products block on the front page using the layout editor tool, and then customize the welcome block the way you want (add videos, text, whatever).
Here is a guide on how to use layout editor.
* https://kb.x-cart.com/look_and_feel/theme_tweaker/layout_editor.html
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 02-14-2019, 03:23 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: Crisp White - adding a video (or other segment) to the home page

Hi Alex

Thanks for your suggestion. I did consider doing that, but I would prefer to leave that block where it is and create a new block further down.

Part of doing this is to help me understand how XC5 builds the pages. I will never be an expert in this, and there will be plenty that I can't do myself, but I would like to be more comfortable with the platform.

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #4  
Old 03-05-2019, 03:58 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Crisp White - adding a video (or other segment) to the home page

Hi @welly,

Have you looked at the articles here?
https://devs.x-cart.com/getting_started/how-to-apply-design-changes.html
https://devs.x-cart.com/getting_started/how-to-apply-design-changes.html#registering-template-in-view-list

Basically, you need to create your own template and register it in the ''center" view list with the weight that suits you.

Let me know if it is any help to you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
welly (03-05-2019)
  #5  
Old 03-05-2019, 05:31 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: Crisp White - adding a video (or other segment) to the home page

Thanks Tony

I did actually manage to do this already, but haven't had a chance to update this post with the method I used.

Essentially, I copied the sample module from the developer doc regarding 'Controllers', stripped out the standard output and put in the iframe code instead. It works a treat, and I now have a YouTube video front and centre on my home page.

I don't know exactly how it works, but I have a rough idea. Thankfully the sample code did most of the heavy thinking. I just fiddled with it until it did what I wanted.

Cheers

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 12:37 PM.

   

 
X-Cart forums © 2001-2020