X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Modifying the design and features (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Crisp White - adding a video (or other segment) to the home page (https://forum.x-cart.com/showthread.php?t=76824)

welly 02-14-2019 02:06 AM

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

qualiteam 02-14-2019 02:52 AM

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

welly 02-14-2019 03:23 AM

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

tony_sologubov 03-05-2019 03:58 AM

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

welly 03-05-2019 05:31 AM

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


All times are GMT -8. The time now is 11:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.