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)
-   -   All Products on front page, similar to featured products (https://forum.x-cart.com/showthread.php?t=69469)

minfinger 08-01-2014 08:18 AM

Re: All Products on front page, similar to featured products
 
I changed this one, but I'm having trouble getting the Rebuilding cache to cooperate.

minfinger 08-02-2014 04:25 AM

Re: All Products on front page, similar to featured products
 
I can not get this one to working, even though it shows enabled. Nothing has changed on the front page. The Product Advisor mod is still on. I tried turning it of, no difference.

minfinger 08-04-2014 08:26 PM

Re: All Products on front page, similar to featured products
 
1 Attachment(s)
Where is this folder structure supposed to be? View/Custom/ProductsOnHome.php

I thought it was supposed to be here: classes/XLite/Module/FasterThanYours/AllProductsFrontPage/View/Custom

Because I put the Main.php in classes/XLite/Module/FasterThanYours/AllProductsFrontPage/

Not sure what to do at this point. I've attached the ProductsOnHome.php I made

tony_sologubov 08-05-2014 04:33 AM

Re: All Products on front page, similar to featured products
 
Yes, you are right. This folder is supposed to be at
classes/XLite/Module/FasterThanYours/AllProductsFrontPage/View/Custom

Could you please pack your module and send it to me?

You should set up developer_mode option as On in the etc/config.php file and then you will see 'Pack it' link near each module in the 'Installed modules' section in admin area.

Once I receive the module, I will be able to check what is wrong with it.

Tony.

Quote:

Originally Posted by minfinger
Where is this folder structure supposed to be? View/Custom/ProductsOnHome.php

I thought it was supposed to be here: classes/XLite/Module/FasterThanYours/AllProductsFrontPage/View/Custom

Because I put the Main.php in classes/XLite/Module/FasterThanYours/AllProductsFrontPage/

Not sure what to do at this point. I've attached the ProductsOnHome.php I made


minfinger 08-05-2014 05:40 AM

Re: All Products on front page, similar to featured products
 
Here it is packaged up. Ok it wouldn't let me attach the tar file, so here's a link on Dropbox

https://www.dropbox.com/s/uq29hyxdl923wkc/FasterThanYours-AllProductsFrontPage-v5_1_3.tar

tony_sologubov 08-05-2014 06:25 AM

Re: All Products on front page, similar to featured products
 
Hi Michael!

You need to apply two fixes in order to make this module work:
1) Change the class name in the classes/XLite/Module/FasterThanYours/AllProductsFrontPage/View/Custom/ProductsOnHomePage.php file to ProductsOnHomePage (or change the file name to ProductsOnHome.php). The idea is that filename and classname must be the same.

2) Remove the very first space symbol before <?php construction in that file.

Rebuild the cache and after that, your module should start working properly.

minfinger 08-05-2014 06:34 AM

Re: All Products on front page, similar to featured products
 
Thanks, I just caught that extra space when I posted the link. I've changed the name and I'm working on rebuilding the cache now.

minfinger 08-05-2014 10:49 AM

Re: All Products on front page, similar to featured products
 
Tony,

The site won't Re-build the cache again. I cleared everything out of the var folder, but it's still just making the var\log\php_errors.log.2014-08-05.php file get bigger and bigger.

This repeats over and over.
PHP Code:

<?php die(1); ?>
[05-Aug-2014 13:42:33] Error (code: -9999): We are deploying new changes to our store. One minute and they will go live!
Server API: cgi-fcgi;
Request method: GET;
URI: /admin.php;
Backtrace: 
#0 /home/myyamaha/public_html/lpo/Includes/ErrorHandler.php(334): Includes\ErrorHandler::throwException('We are deployin...', -9999)
#1 /home/myyamaha/public_html/lpo/Includes/Decorator/Utils/CacheManager.php(480): Includes\ErrorHandler::fireError('We are deployin...', -9999)
#2 /home/myyamaha/public_html/lpo/Includes/Decorator/Utils/CacheManager.php(620): Includes\Decorator\Utils\CacheManager::checkIfRebuildStarted()
#3 /home/myyamaha/public_html/lpo/Includes/Decorator/Utils/CacheManager.php(650): Includes\Decorator\Utils\CacheManager::runStep(1)
#4 /home/myyamaha/public_html/lpo/Includes/Decorator/Utils/CacheManager.php(913): Includes\Decorator\Utils\CacheManager::runStepConditionally(1)
#5 /home/myyamaha/public_html/lpo/top.inc.PHP53.php(111): Includes\Decorator\Utils\CacheManager::rebuildCache()
#6 /home/myyamaha/public_html/lpo/top.inc.php(45): require_once('/home/myyamaha/...')
#7 /home/myyamaha/public_html/lpo/admin.php(35): require_once('/home/myyamaha/...')
#8 {main}


minfinger 08-06-2014 08:46 AM

Re: All Products on front page, similar to featured products
 
Ok I finally got it to rebuild, had to delete the var directory itself.

It's still not working.

tony_sologubov 08-08-2014 04:52 AM

Re: All Products on front page, similar to featured products
 
Hi Michael!

The problem with 'Error (code: -9999): We are deploying new changes to our store. One minute and they will go live! Server API: cgi-fcgi;' message populated php_errors log is fixed in 5.1.4. Please upgrade it and your php_errors log will be much cleaner.

As for the problem with the mod. Could you please pack it up and send it to me again? I will check it for you.

Tony.


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

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