X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Adding secure site seal to bottom right of all pages (https://forum.x-cart.com/showthread.php?t=70783)

JiffyPark 12-14-2014 10:31 AM

Adding secure site seal to bottom right of all pages
 
I'm in the process of setting up a new X-cart 5 site and just got a Comodo SSL certificate through my web host. I'd like to display the secure logo at the bottom right of all my pages and would like some insight as to go about doing that. I founds a thread talking about doing this in previous versions of X-cart but it didn't seem to fit with XC 5 use.

totaltec 12-14-2014 02:27 PM

Re: Adding secure site seal to bottom right of all pages
 
Yes, it would be totally different in XC5. I would start by building a module/skin. Here is my tutorial on that subject: http://xcartguru.com/tutorials/x-cart-5-tutorials/building-a-custom-skin-in-x-cart-5/

Once you have your custom skin it is a simple matter of overriding the template.

tony_sologubov 12-16-2014 06:07 AM

Re: Adding secure site seal to bottom right of all pages
 
Hi JiffyPark!

I have already explained how you can achieve the same result for X-Cart 5.0 here:
http://forum.x-cart.com/showpost.php?p=370131&postcount=10

The instruction is pretty similar for X-Cart 5.1, but you will have to edit Main.php file of the module and set getMajorVersion to return '5.1' instead of '5.0'.

If I sound complicated to you, please let me know and I will try to help.

Tony.

JiffyPark 12-16-2014 09:50 AM

Re: Adding secure site seal to bottom right of all pages
 
I opened the tar file and edited the main.php file to 5.1 and then re-archived. When I try to upload and install it through the "Installed Modules" page I get the following error. Any ideas what the problem is?

Code:

Error:unable to add module entry to the installation list: "/home/jiffypark/tooldepot.net/var/tmp/Tony-SslSeal-v5_0_0.tar"

cflsystems 12-16-2014 12:48 PM

Re: Adding secure site seal to bottom right of all pages
 
You probably need to rename the file - ...-v5_1_0.tar

JiffyPark 12-16-2014 01:58 PM

Re: Adding secure site seal to bottom right of all pages
 
Quote:

Originally Posted by cflsystems
You probably need to rename the file - ...-v5_1_0.tar


Thanks for the info but I just tried it and that didn't work either. If I leave it alone i get the error about the version being wrong but as soon as I change the version in main.php and install the module it gives me the "unable to add module..." error.

cflsystems 12-16-2014 02:04 PM

Re: Adding secure site seal to bottom right of all pages
 
The tar file itself has some "cached" files which contain the version in there as well. You need to change it everywhere it appears.

As an alternative you can just untar on your local machine and upload only the module files to the store. Then change the Main.php file and run the store ache rebuilt. That should work.

totaltec 12-16-2014 03:03 PM

Re: Adding secure site seal to bottom right of all pages
 
You can't open an xcart 5 tar file and change it, then simply tar it up and re-install. The tar file is packed specially by X-Cart itself. Make the changes you want in an local copy of XC, rebuild the cache, the pack the module via XC's interface. Make sure to turn developer mode on in etc/config.php

JiffyPark 12-16-2014 03:18 PM

Re: Adding secure site seal to bottom right of all pages
 
Ah crud... well you lost on that last one my friend. Not sure how to do most of those steps. I think I might have to move this to the back burner and label it as a "someday" project. I appreciate everyone's help on this.

cflsystems 12-16-2014 03:23 PM

Re: Adding secure site seal to bottom right of all pages
 
You don't have to do all this. The tar package has "classes" and "skin" directories. These are what you need to copy to root of cart. Modify the version. Then just rebuilt cache. The cart will pick up the new module and install it


All times are GMT -8. The time now is 02:02 AM.

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