| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
All Products on front page, similar to featured products | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#71
|
|||||||||
|
|||||||||
![]() For that, add the following methods to the AllProducts class:
PHP Code:
Please, let me know if it does the trick for you.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! Last edited by tony_sologubov : 03-10-2015 at 03:53 AM. |
|||||||||
#72
|
|||||||
|
|||||||
![]() Which location do I make that file? I tried adding it to any of the other AllProducts.php files and none of them worked.
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
#73
|
|||||||||
|
|||||||||
![]() You should add these lines to the <X-Cart>/classes/XLite/Module/Tony/ProductsDemo/View/ItemsList/Product/Customer/AllProducts.php file. If lines do not do the trick, please send me the final version of the module with lines there and I will check what might be wrong.
Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#74
|
|||||||
|
|||||||
![]() From the php log: <?php die(1); ?>
[18-Feb-2015 08:00:17 America/Chicago] PHP Fatal error: Access level to XLite\Module\Tony\ProductsDemo\View\ItemsList\Prod uct\Customer\AllProducts::setWidgetParams() must be public (as in class XLite\View\ItemsList\Product\Customer\ACustomerAbs tract) in /home/myyamaha/public_html/lpo/var/run/classes/XLite/Module/Tony/ProductsDemo/View/ItemsList/Product/Customer/AllProducts.php on line 57 When I changed that to public the front page didn't load and just made a giant xlite error log that kept building. Here's the file https://www.dropbox.com/s/2dgpii0040lzzin/Tony-ProductsDemo-v5_1_2%20-%202015_0218.tar?dl=0
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
#75
|
|||||||||
|
|||||||||
![]() Hi Michael!
Sorry, that was my bad. The correct version of setWidgetParams() must be as follows: PHP Code:
Please, let me know if it works 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! Last edited by tony_sologubov : 03-10-2015 at 03:53 AM. |
|||||||||
#76
|
|||||||
|
|||||||
![]() That got the front page to show the products, but only in Grid Mode.
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
#77
|
|||||||||
|
|||||||||
![]() Quote:
I see. Please replace this line PHP Code:
PHP Code:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#78
|
|||||||
|
|||||||
![]() Oh that's great, thank you.
Can you tell me how to set the default display mode in that Category view to List?
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
#79
|
|||||||||
|
|||||||||
![]() Quote:
I am not sure I am following this question. Do you mean that you want to display products in List mode in certain category? In this case, you will need to add a corresponding if condition around this line: PHP Code:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#80
|
|||||||
|
|||||||
![]() Tony,
No I want it to be List mode by default on the whole site.
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|