Simpla cms related products on the product page
Related Products
$self_ids = array();
$self_products = array();
foreach($this->products->get_self_products($product->id) as $p)
by {
$self_ids[] = $p->related_id
$self_products[$p->related_id] = null;
The
/* sku_related_products */
if( $product->variant->sku ){
foreach($this->variants->get_sku_product_id($product->variant->sku, $product->id) as $ps)
by {
$self_ids[] = $ps
$self_products[$ps] = null
The
Unification of the Massive
$self_ids = array_unique ($self_ids)
The
/*/ sku_related_products */
if(!empty($self_ids )
by {
foreach($this->products->get_products(array('id'=>$self_ids, 'in_stock'=>1, 'visible'=>1)) as $p)
$self_products[$p->id] = $p;
$self_products_images = $this->products->get_images(array('product_id'=>array_keys($self_products)));
Foreach($self_products_images as $self_product_image)
if(isset($self_products[$self_product_image->product_id]))
$self_products[$self_product_image->product_id]->images[] = $self_product_image;
$self_products_variants = $this->variants->get_variants(array('product_id'=>array_keys($self_products), 'in_stock'=>1));
Foreach($self_products_variants as $self_product_variant)
by {
if(isset($self_products[$self_product_variant->product_id]))
by {
$self_products[$self_product_variant->product_id]->variants[] = $self_product_variant;
The
The
Foreach($self_products as $id=>$s)
by {
if(is_object($s )
by {
$s->image = &$s->images[0];
$s->variant = &$s->variants[0];
The
Other
by {
unset ($self_products [$id] )
The
The
$this->design->assign('self_products', $self_products);
The
The code is displayed on the color product page
Screenshots attached
It is necessary to make it out on the product page under each product.
Screenshot attached
Applications 2
Client's review of cooperation with Ivan P.
Simpla cms related products on the product pageEverything at the highest level! Fast and Quality
Freelancer's review of cooperation with Aleksandr Kurd
Simpla cms related products on the product pageA clear task! timely answer to the question to clarify in the course of the work. I recommend for cooperation.
Current freelance projects in the category Web Programming
Development of a new SEO website and long-term SEO promotion (USA)
700 USD
We are looking for an experienced specialist (or a small team) who can not only develop a website but also become our long-term partner in the development of several projects. About the company We operate a mobile coffee shop, BroCoffee, in the USA. Our current website:… Web Programming, Search Engine Optimization (SEO) ∙ 8 hours 17 minutes back ∙ 32 proposals |
Problems with displaying textures of 3D files on Sketchfab
16 USD
Can you tell me why the textures of my 3D files are not displaying and why I have white walls when uploading them to Sketchfab? This happens with any blend, fbx, or glb file; I am working in Blender, version 5.0. I have already clicked on Pack resources or Make paths… 3D Modeling, Web Programming ∙ 10 hours 23 minutes back ∙ 4 proposals |
Need help with document verification on Fiverr
16 USD
Has anyone else encountered this problem besides me among Fiverr users? I just recently registered there and tried to go through verification to publish a Gig, but when scanning the back of my passport, the scan rejects me and says that the file format is incorrect. I have a… Web Programming, Tuition ∙ 10 hours 31 minutes back ∙ 5 proposals |
Online lesson"I am looking for a technical specialist/programmer to set up a short online lesson for the field of cosmetology in the USA (Illinois). It is necessary to upload text/video to a ready-made platform (Teachable or similar / or simple WordPress) and set up protection: blocking the… Web Programming ∙ 13 hours 33 minutes back ∙ 22 proposals |
Creating index.html in the style of the example
57 USD
Hello. I want index.html to be very similar to the AI-generated example. It needs to recreate this American old school style. Web Programming ∙ 16 hours 44 minutes back ∙ 81 proposals |