X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Pull Out Title and Description Information (https://forum.x-cart.com/showthread.php?t=68543)

Wazowski 01-26-2014 06:19 PM

Pull Out Title and Description Information
 
Hi, I▓m looking for a way to pull the title and meta description information from pages without surrounding code (such as <meta name="description"...), is there a way to do that?

carpeperdiem 01-26-2014 06:48 PM

Re: Pull Out Title and Description Information
 
When you say "pull" what do you mean?
Where do you want to put it after you "pull" it?
It's just a smarty tag. Place the smarty tag wherever you want on the page.
You do NOT have to use <meta name="description"...)

iClerisy 01-26-2014 09:41 PM

Re: Pull Out Title and Description Information
 
If you just want to collect the Title and Meta Desc value, you can pull it from database.
And if you want to place the same value if the site, you need to edit tpl files

rogue 01-27-2014 06:05 AM

Re: Pull Out Title and Description Information
 
You can export products - That information is in the export file (along with other stuff)

Wazowski 01-27-2014 01:03 PM

Re: Pull Out Title and Description Information
 
Thank you for the answers guys. I▓ll be more specific. What I want to do is to include a product Title into its Meta Description (without deleting the description itself), for example:

Before:
Code:

<title>This is My Product</title>
<meta name="description" content="Enjoy the highest quality products at our website." />


After:
Code:

<title>This is My Product</title>
<meta name="description" content="This is My Product. Enjoy the highest quality products at our website." />



I see:
Code:

{get_title page_type=$meta_page_type page_id=$meta_page_id}
and
Code:

{meta type='description' page_type=$meta_page_type page_id=$meta_page_id}
What I can▓t get is how to separate them and include one into the other.

cflsystems 01-27-2014 07:33 PM

Re: Pull Out Title and Description Information
 
You will have to modify the smarty function to do that - include/templater/plugins/function.meta.php

rogue 01-28-2014 06:29 AM

Re: Pull Out Title and Description Information
 
This would probably be easier to do by exporting all your products, removing all columns from the result except for productid and description then add the meta to each of the descriptions (in the editor or excel) and reupload/import.

cflsystems 01-28-2014 08:03 AM

Re: Pull Out Title and Description Information
 
If you do this make sure to keep clean_urls column with existing values or XC will create new ones for all imported products.

Wazowski 01-28-2014 11:22 AM

Re: Pull Out Title and Description Information
 
Thank you guys for help, I think I▓ll just go with export/import variant.


All times are GMT -8. The time now is 10:08 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.