| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
All Products on front page, similar to featured products | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: All Products on front page, similar to featured products
I can't update because this is a temporary site I'm setting up in preparation of migrating the existing xcart to 5.X. I don't have a license to use with this site because of that.
Go here for the package https://www.dropbox.com/s/msjclt2vhoc5qku/FasterThanYours-ProductsOnHomePage-v5_1_3.tar
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#32
|
|||||||||
|
|||||||||
Re: All Products on front page, similar to featured products
Hi!
Thank you for sending the module. In order to fix the problem you should edit the classes/XLite/Module/FasterThanYours/ProductsOnHomePage/View/Custom/ProductsOnHomePage.php file and replace the following line PHP Code:
with the next one: PHP Code:
Then, you should regenerate the cache and the problem will be fixed.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#33
|
|||||||
|
|||||||
Re: All Products on front page, similar to featured products
Ok finally it's working! Thanks.
Now onto my next problems. I wanted the "New", "Coming Soon" tags on the dogs. The only way to get that is to turn on the Product Advisor Module. Now that I've done that, I'm seeing several issues. It's now listing separately below all the products, "New Arrivals" and "Coming Soon" Additionally, see in the attached picture, when I go to the All Products Category, it's listing all products in duplicate and then again below that "New Arrivals" and "Coming Soon". All of the categories are the same way, but I only have a few test products, so the All Products shows the problem better. And as a side note, I'd like to also color each Products listing Pink or Blue depending upon membership to the Female or Males category.
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#34
|
|||||||||
|
|||||||||
Re: All Products on front page, similar to featured products
1) You can disable showing New Arrivals and Coming soon products in the Product Advisor settings. Tick on the following settings:
- Display "New arrivals" block on sidebar (otherwise in center area) - Display "Coming soon" block on sidebar (otherwise in center area) 2) In order to hide All products from category pages, you should edit the ProductsOnHomePage viewer class and add the following method there: PHP Code:
It should do the trick.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#35
|
|||||||
|
|||||||
Re: All Products on front page, similar to featured products
Tony,
1. Fixed. 2. I don't understand where in the code I should do that?
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#36
|
|||||||
|
|||||||
Re: All Products on front page, similar to featured products
Ok I think I figure out where to put the code, because that fixed the duplication problem. But I'm having trouble with the Home page showing a product "ghosted" that has no inventory and is disabled. See Home Page 2014_0814.jpg I've also attached my Product Advisor Settings.jpg file
Just in case you want the current Package https://www.dropbox.com/s/z41ummw6ip033qb/FasterThanYours-ProductsOnHomePage-v5_1_3.tar Here's the current ProductsOnHomePage.php file: PHP Code:
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#37
|
|||||||||
|
|||||||||
Re: All Products on front page, similar to featured products
Hi Michael!
I just wrote an article that describes the task you need to achieve: http://kb.x-cart.com/display/XDD/Searching+entities+in+repositories#Searchingentiti esinrepositories-Pull...mplexcondition Please, let me know if it helps. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#38
|
|||||||
|
|||||||
Re: All Products on front page, similar to featured products
Tony,
I'm sorry I don't get this. What you wrote on that page, to me, doesn't even vaguely come close to what I've already gotten. I don't understand what needs to go where. I'm at the end of my rope because none of the old developers I worked with don't even want to to touch XC5 because of well, many reasons.
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#39
|
|||||||||
|
|||||||||
Re: All Products on front page, similar to featured products
Quote:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#40
|
|||||||||
|
|||||||||
Re: All Products on front page, similar to featured products
Sorry for too technical explanation.
Let me try to explain it in simpler way. 1) In your module you need to create Model/Repo/Product.php with the content as provided here: http://kb.x-cart.com/display/XDD/Searching+entities+in+repositories#Searchingentiti esinrepositories-Pull...mplexcondition Make sure that you specify right namespace though! 2) In the View/Custom/ProductsOnHomePage.php file you should replace the following line: PHP Code:
with the next one: PHP Code:
3) Rebuild the cache. It should do the trick. Tony. Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|