Originally posted by Bruce - PhosphorMedia
View Post
Announcement
Collapse
No announcement yet.
Populating a CTGY page using a custom product field
Collapse
X
-
-
Well, sort of...its loading 9000+ products that all have the word/tag blue in them :) Sounds like you want a bit more 'refinement'. Have you thought of just using htaccess or URI rules to get over the SEO firms complaints?
Leave a comment:
-
Here's an example of an ASP site - my ASP.net foo has grown weak - but I'm pretty sure a page like this is using fields from the database to load the blue products on this page:
https://www.onlinefabricstore.net/color-blue.aspx
Leave a comment:
-
Well, if you didn't have too many products, you could set up a template that ran the product_list and feed it variables for the specific custom field
<foreach in the product list>
<mvt:item name="customfields" param="Read_Product_Code(g.theProductCodePassedThr ough, g.theCustomFieldPassedThrough, g.theFilterValue)">
<mvt:if expr="g.theFilterValue">
write product info
</mvt:if>
</foreach>
Leave a comment:
-
Originally posted by Bruce - PhosphorMedia View PostOK, if you want to get all the Products that have, say a custom field of "LeslieWants" with the value "ShowMe"? If so, you'd need to run through an ALL products loop and look for that custom field one by one. If that's it, I don't think you can do it any other way. Might be easier to assign them to a non-display category.
Leave a comment:
-
OK, if you want to get all the Products that have, say a custom field of "LeslieWants" with the value "ShowMe"? If so, you'd need to run through an ALL products loop and look for that custom field one by one. If that's it, I don't think you can do it any other way. Might be easier to assign them to a non-display category.
Leave a comment:
-
Originally posted by Bruce - PhosphorMedia View PostThere's this:
Code:<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( 'category_code', l.settings:current_category )" /> <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_ProductList_Load_Offset_Category( l.settings:current_category:id, g.Offset, 100, g.NextOffset, l.settings:products )" /> <mvt:foreach iterator="product" array="products"> &mvt:product:code;<br> </mvt:foreach>
I'm wanting to try and build a page that will display products based on Product Custom Field. For example, there may be 100 products that have Product Custom Field (that is tied to the EP Power Search) and I want to populate a page based on the content of that field.
Leave a comment:
-
There's this:
Code:<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( 'category_code', l.settings:current_category )" /> <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_ProductList_Load_Offset_Category( l.settings:current_category:id, g.Offset, 100, g.NextOffset, l.settings:products )" /> <mvt:foreach iterator="product" array="products"> &mvt:product:code;<br> </mvt:foreach>
Leave a comment:
-
Populating a CTGY page using a custom product field
The EmporiumPlus Toolkit has the ability to populate products on to a CTGY page with something like this:
Code:<mvt:item name="toolkit" param="sassign|cat_code|new-fabric" /> <mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|40" /> <mvt:if expr="pcount GT 0"> <mvt:foreach iterator="sub_product" array="sub_products"> <li><a href="/&mvta:sub_product:code;.html"><img src="&mvt:sub_product:thumbnail;" width="110" height="110" alt="alt text" /><span class="caption">&mvt:sub_product:formatted_price;</span></a></li> </mvt:foreach> </mvt:if>
Is is possible to populate a category page with products based on a Product Custom Field?
Tags: None
Leave a comment: