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
Moving from Hosting to AnotherGood day I plan to transfer the website from the hosting in Ukraine to hosting.works. Also, it is necessary to set up a rule that if the traffic from a certain IP exceeds, for example, 100 requests per day, it should be blocked. Content Management Systems, Web Programming ∙ 34 minutes back ∙ 41 proposals |
Creation of a website for a recruitment agency
1115 USD
We are a recruitment agency, and we are looking for an experienced web developer to create a modern and user-friendly website. We want to allow candidates to propose their own price for the service. Therefore, we are looking for a specialist who has experience in custom… Web Programming ∙ 1 hour 24 minutes back ∙ 56 proposals |
Game Developer Pixi.Js
350 USD
We are looking for a Pixi.js developer to create a series of 12 mini-games. The projects are simple to implement, and with confident work, developing one game takes no more than a week. It is necessary to implement the frontend and game mathematics, without backend development.… Javascript and Typescript, Web Programming ∙ 2 hours 23 minutes back ∙ 22 proposals |
Improvement of site CR conversion
145 USD
Improvement of the website's CR conversion. Tasks according to the specifications https://docs.google.com/document/d/1Y7zipbe2IEnFpthYuheAr6QA_50aR2Fz8V14rp5NpNo/edit?usp=sharingBOOK NOW buttonphoto / videoshort textAND IMMEDIATELY the booking formfixed (sticky)to repeat every… HTML & CSS, Web Programming ∙ 4 hours 38 minutes back ∙ 27 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 ∙ 15 hours 44 minutes back ∙ 5 proposals |