Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Pull Out Title and Description Information

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 01-26-2014, 06:19 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Exclamation 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?
__________________
X-Cart version 4.5.5
Reply With Quote
  #2  
Old 01-26-2014, 06:48 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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"...)
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 01-26-2014, 09:41 PM
  iClerisy's Avatar 
iClerisy iClerisy is offline
 

Senior Member
  
Join Date: Mar 2010
Posts: 103
 

Default 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
__________________
Dhvanit Upadhyay
Professional X-cart Service | Former Partner X-cart.es
Skype : dhvanit.upadhyay
https://www.linkedin.com/in/dhvanit/
Reply With Quote
  #4  
Old 01-27-2014, 06:05 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default Re: Pull Out Title and Description Information

You can export products - That information is in the export file (along with other stuff)
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
  #5  
Old 01-27-2014, 01:03 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default 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.
__________________
X-Cart version 4.5.5
Reply With Quote
  #6  
Old 01-27-2014, 07:33 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Pull Out Title and Description Information

You will have to modify the smarty function to do that - include/templater/plugins/function.meta.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 01-28-2014, 06:29 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default 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.
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
  #8  
Old 01-28-2014, 08:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 01-28-2014, 11:22 AM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Thumbs up Re: Pull Out Title and Description Information

Thank you guys for help, I think I▓ll just go with export/import variant.
__________________
X-Cart version 4.5.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:19 AM.

   

 
X-Cart forums © 2001-2020