![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Hi Eric,
Some merchant has their name as part of product description, how can I remove them for example Zappos inserts "Zappos.com is proud to offer the" in the first part of its product description Thanks |
#2
|
||||
|
||||
![]() You can edit the products manually by clicking the "more info" link for the product in the Factory.
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Zappos has thousand of products - I can not change the description manually
In "HTML for the <head> element" in "product detail" we have "<meta name="description" content="[product.description]" />" How can we modify the "content" to get rid of "Zappos.com is proud to offer the" |
#4
|
||||
|
||||
![]() Well, you could use PHP's substr() or str_replace() function to strip out specific text from the $product->description variable. That's really your only choice.
__________________
![]() ![]() ![]() ![]() |
#5
|
|||
|
|||
![]() I am not a programmer - please show me how to use PHP's substr() function to remove "Zappos.com is proud to offer the" in the $product->description
|
#6
|
||||
|
||||
![]() <?php echo str_replace("Zappos.com is proud to offer the", "", $product->description); ?>
More examples and usages here: http://php.net/manual/en/function.str-replace.php
__________________
![]() ![]() ![]() ![]() |
#7
|
|||
|
|||
![]() Store ID: 32722
Website URL: www.meinehandtasche.de URL to page in question: Hi, In which file I need to insert this code? Quote:
Oliver |
#8
|
||||
|
||||
![]() Hi
The other user was referring to this section: The Factory > Your Store > VIEWS > PRODUCT DETAIL > Default > View menu > View <head> Elements in the meta description tag. Eric
__________________
![]() ![]() ![]() ![]() |
#9
|
|||
|
|||
![]() Hi,
how can I replace a string like "- bei Yoox.com" from the product title? I tried to insert it this way in //Views > Product detail > edit template// but didn't work. Quote:
I already asked a similar question but do you have a solution if I want a freelancer to re-write the product description for SEO purpose without providing access to the factory? Like: exporting all products in a csv file and importing it back. If not might this be worth to be a comming feature? Thanks, Oliver |
#10
|
||||
|
||||
![]() Hi
You're almost there. You need this: PHP Code:
Eric
__________________
![]() ![]() ![]() ![]() |
#11
|
|||
|
|||
![]() This worked just fine! :-)
Thank you so much! Here for others the code how it looks in the end. I just have to do the same on the view category. here the detail view: Quote:
|
#12
|
|||
|
|||
![]() hmmm... for the category view somehow it didn't work that way.
When I change the code this way the headline won't be displayed. What am I doing wrong again? What I did: Inserting this line Quote:
Quote:
|
#13
|
||||
|
||||
![]() Hi
You should place the first PHP code immediately after the [product.each] tag. ... [product.each] <?php $pname = str_replace(" - bei YOOX.COM", "", $product->name); ?> ... Eric
__________________
![]() ![]() ![]() ![]() |
#14
|
|||
|
|||
![]() This works now as well. Thanks!! :-)
Quote:
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove product description from related products? | cashnow | Questions | 2 | March 8th, 2011 10:26 AM |