PrestaShop display set of products - prestashop

Newbie to PrestaShop (v 1.7) I need to display a set of products (filtered according to certain criteria - defined elsewhere dynamically ) in a similar way as the category products listings. Basically, it's the same page as the category listings but a different data source. What's the best way to achieve this? override a core controller or create a controller in a module?

The standard way is to create a new module with front controller to displays your filtered products

Related

custom input field on product grid in admin magento 2

I am making custom module where am attaching to customers to products with the help of product grid
See screenshot two tabs
and in select product tab m selecting products
Tab 2
while selecting products I want to add one custom input field on all product where I can enter value and that value will store in my database.
Can anyone help me with this.
Hm. The fastet way is add the new custom attribute to the products and use it. You can add new attribute via Admin Panel or from Namespace/Module/Setup/UpgradeData.php (or install) file in your custom module (which is better in my opinion). Then this attribute will be visible in all products in BE and value'll be available in FE via $product->getData('attr_name').
If you want to show this attribute input only for assigned products (not for all) -> then it is most complex, but usually it's not problem that product has additional input.

Programmatically load the contents of a Product in a particular product type

I am developing an Ecommerce site and I am using Drupal-commerce module for it. I have an issue regarding loading the contents of a product which is: How can I programmatically get the contents of all the products in a particular product type?

SiteFinity 7.1 custom content items and grouping

We have a list of faculty and units for a SiteFinity 7.1 site. We have these as custom content items in the site, because we are programming against them and building a few widgets around them.
However, we also have news about these faculty and units, and we'd like to use the existing news items in SiteFinity.
How do we easily tie faculty and units (custom content items) to news items (another content item baked into SiteFinity)? I wasn't sure if we create classifications that list faculty and units, and use these as the grouping mechanism? Or is there an easy way to tie two content items together? 
It kind of depends on how you're going to (or how you want to) display the data at the end. Here are a couple of different ways to achieve what you're after.
You're planning on using the stock News widget to display the content.
If this is true, using a custom taxonomy would be pretty easy in this case. Here's a video that outlines this method.
You're planning on displaying the news items in close proximity to one of the custom content types you've created.
In this case, adding a related data field to the custom type would allow you use related content items with widget templates.

Prestashop : Adding a field to choose Shipping carrier in product page front office

I'm using PrestaShop 1.5.5.0.
I want to add a custom check box list to the product page so a customer can choose shipping carrier on the product details page. Can it be possible ? I can add a specific fields in the product details page. As I'm new it's little difficult for me to figure out how can I add other details and carry the values to the order page and that is also dynamically. Is there any module available by which I can accomplish the task ? Please suggest me.
What I want to do is this : Choosing shipping carrier in product page :
http://www.wayfair.com/LifeStyle-Solutions-Zurich-Platform-Bed-LS3-ZUR-X-CP-LF1087.html
Well It's a tough task. You need to work on the controller if you want to carry the values or create a module like shipping estimate and hook it to the product page that might work.

Display featured products on category page PRESTASHOP

I just want to show some featured products on each category page (not home page).
I thought to use features or tags. So in the back, I add to the products I want to show a "featured" tag or feature. And then in the front on each category page I display the products of that category that have that tag or feature.
What do you think is easier? and how can I achieve this? I am so lost, so I'd appreciate any guidance.
Thanks guys
Here is how I would do this:
Create a module (obviously) to extend the product class and add a featured field (as a boolean, you can also use a position field if you want to manage something like that)
Within the module it's easy to override the admin controller to add a checkbox somewhere
On the category page, create a hook to display the featured product, or just override the categoryController to get them.
And voilà! It's really easy. I just give you the steps as I won't write the code for you :) but if you need more advices feel free to ask