Jump to content

Making multiple products use ONE master description?


Guest

Recommended Posts

I have about 20 products with the same description, but I want to be able to edit these easily.

 

Is there a way I can use a master description they all use? So if i edit the master it changes them all?

 

Can I show a Html page within a HTML page or use include file?

 

 

Link to comment
Share on other sites

Welcome Simon2k11! Glad to see you made it to the forums.

 

There are three short answers of: no.

 

There is one other answer of: maybe.

 

1. CubeCart uses a template engine (Smarty with CC5) and it is designed to not re-parse through already parsed template code. So, this does not work:

<?php
$common_description = "{include file='common.html'}";
$Smarty->assign('DESCRIPTION', $common_description);
?>

The DESCRIPTION placeholder in the template will be replaced with {include file='common.html'} and that will be that.

 

2. Others have tried to trick a browser into loading a CSS resource and then displaying the text.

<?php
$common_description = '<STYLE TYPE="text/css"><!-- @import url(http://www.example.com/common_description.css); --></STYLE>';
$Smarty->assign('DESCRIPTION', $common_description);
?>

file: common_description.css

contents: This is actually the product's description. No CSS here.

 

Nope.

 

3. Others have tried to trick a browser into loading an image resource and hoping it will display text if the image file is actually text instead of a real image.

 

Nope.

 

4. The better fake-out is to use an <iframe> tag as the product description. The iframe loads the specified text file.

 

5. Another fake-out is to have a javascript <script> tag have a jQuery $.load() function call.

<?php
// The rich text editor may or may not allow you to enter script tags in the content window.
// http://api.jquery.com/load/
$common_description = '<script>$("#product_description").load("common_description.html")</script>';
$Smarty->assign('DESCRIPTION', $common_description);
?>

Even though #5 seems to be the most promising, realize that when this page gets crawled by Google, et al, scripts may or may not get executed. If not, your brilliant and inciteful product description prose will not be seen.

Link to comment
Share on other sites

I've checked to see if I can use an uploaded image to show my product description and this works fine.

 

Is there any cons to this? Could it really hinder google results?

Link to comment
Share on other sites

I can't answer the google question as I am search-engine atheistic. But pictures of text that is not "deemed" to be text will be treated as an image.

 

By "deemed" as text, I mean to say that a scanned image of a book page is intended to be OCR'd then indexed. The book and its images of the pages have a known destiny. An image of your product description does not and so is treated just as another image.

 

Those with sight disabilities won't be able to have their screenreaders read the image (unless you put the entire description in the alt attribute).

Link to comment
Share on other sites

  • 1 year later...

I had the same problem and resolved it this way:

My host provides phpMyAdmin which I used to Export the database file Inventory, in CSV. Then I edited the downloaded file to use replace etc. then Upload with Replace ticked.

 

However, I had a problem. I changed the product NAME also, and now my HTML files still have the same old name and so does the SEO. I need to update these but I haven't been able to find where the old name is stored. That was why I was looking here. So be careful what you change. Don't change column 1; the id.

Link to comment
Share on other sites

Hi

Having 20 products / pages with exactly the same description is a very bad idea from an SEO point of view due to duplicate content issues so whichever way to try to achieve this is not good. If these products really do have the same description, then why not simply create one product and have product options

Thanks

Iam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...