Jump to content

 

Alex4

Member Since 12 Aug 2021
Offline Last Active Oct 15 2021 06:29 AM
-----

Topics I've Started

Price Doesn't Appear In Description

06 October 2021 - 11:52 AM

Please help!

I'm trying to generate description and I want to add price there

Here's the code

 

if ($mode == 'view' && !empty($_REQUEST['product_id'])) {
$product = Registry::get('view')->getTemplateVars('product');
if(empty($product['meta_description'])){
//other data can be added to title dynamic also
$meta_description = $product['product'];
Registry::get('view')->assign('meta_description', "Купить " .strtolower($meta_description) ." за " .$price ." р. " ."от производителя" .$brand ." на маркетплейсе. Доставляем по всей России!");
}
}
 
But price doesn't appear and so does brand
Thanks in advance! 

How To Generate Dynamic Page Meta Description For Product Pages

01 October 2021 - 06:10 AM

Hello!
Seo meta descriptions in cs cart are empty and I need to generate them dynamically using features of products and special text. What is the path to code and how to update it?
Thanks in advance! 


How To Add Words Like "buy" Into Title

16 September 2021 - 06:21 AM

Hello everyone

Please, help, I need to do dynamic generation for my product-titles to be like "*product name* + buy in *** shop"

I use this code to dynamically generate titles.
Please help, how to add words "buy in *** shop" in code?

Thanks in advance!

 

<?php
 
use Tygh\Registry;
 
if (!defined('BOOTSTRAP')) { die('Access denied'); }
 
if ($mode == 'view' && !empty($_REQUEST['product_id'])) {
$product = Registry::get('view')->getTemplateVars('product');
if(empty($product['page_title'])){
//other data can be added to title dynamic also
$page_title = $product['product'];
Registry::get('view')->assign('page_title', $page_title);
}
}
?>

Category "products"

12 August 2021 - 06:49 PM

Hello!
Really need your help!

I'm importing goods with add-on with excel-file, all product categories are clearly defined and created. 
Goods are placed in right categories, but seo names of goods look like "products/..."
And there is category "products" that I didn't created
Where did it came from and why all goods have it in theis seo-names?
Will be veeery grateful for help!

 

P.S.
it's all in russian on screenshots, but I think the problem is clear..