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

All Products on front page, similar to featured products

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #21  
Old 08-01-2014, 08:18 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #22  
Old 08-02-2014, 04:25 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #23  
Old 08-04-2014, 08:26 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

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

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
Attached Files
File Type: php ProductsOnHomePage.php (1.3 KB, 32 views)
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #24  
Old 08-05-2014, 04:33 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default 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
__________________
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
  #25  
Old 08-05-2014, 05:40 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #26  
Old 08-05-2014, 06:25 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default 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.
__________________
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
  #27  
Old 08-05-2014, 06:34 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #28  
Old 08-05-2014, 10:49 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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}
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #29  
Old 08-06-2014, 08:46 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #30  
Old 08-08-2014, 04:52 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default 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.
__________________
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
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (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:05 AM.

   

 
X-Cart forums © 2001-2020