merchant logo and shipping cost over the feed

More
10 years 1 month ago #1854 by gsmiphone
some feeds have shipping price
some feeds not
so what you suggest on this?
also you could see some feeds has sub category in select 2 field
and some has not so they r not identical
so how you want them to fix?

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #1857 by bram
The idea of the datafeeds configuration is that you can map the different names from the feedsinto consistent database fields of the Selectx

So consider the shipping cost in the feeds that might be 'fromprice' 'shipping' 'shippingcost' or whatever.


For each feed map it to the field (for example) 'Select7' and on the front end you can always access the shipping costs using $item

So first step is to make a plan on how to map for example for fashion:
Select1 - Gender
Select2 - Type
Select3 - Sub Type
Select7 - Shipping costs
Select8 - Color
Select9 - Brand

if you can't map a field from the feed to the database leave it blank.

Whether to add the 'shipping' costs as a Select field or a List depends on your purpose. with a List the value is always attached to the description

list:

this is the description
  • shipping : 5.00 euro

using a Select field you can display the value anywhere in your layout.
Code:
$product_price=$item['Prijs']; $product_shipping=$item['Select7']; if ( $product_price > 0 ) { echo '<p class="price">'; echo '<span class="price">'. money_format('%!.2n', $product_price).'</span></p>'; if ( $product_shipping > 0 ) { echo '<span class="ship">Shipping: '. money_format('%!.2n', $product_price).'</span></p>'; } echo '</p>'; }

( removed some duplicate posts from you, no offence)
Last edit: 10 years 1 month ago by bram.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #1859 by gsmiphone
Hi
www.techwelfare.com/dailyfeed/

this is my frontend URL and below is admin URL

www.techwelfare.com/dailyfeed/administrator


now i am trying to fetch the shipping cost (fromprice here in the koopjenu feed) of the feed koopjenu in the below link. could you kindly check and help me please if we are missing something as shipping cost is not showing in the front-end when i am trying to fetch by the below script.

$shipping_price=$item;
<p class="datafeeds_thumb_p">Shipping cost : '.$shipping_price.'</p>

www.techwelfare.com/dailyfeed/administra...afeeds&task=edit&cid []=15

Please assist me in this.
Last edit: 10 years 1 month ago by bram.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #1860 by bram
As depicted in a previous post on this topic and shown in the examples: you map the datafeed fields to database fields. Then you use the database fields in the templates

In your case you map fromprice to Select9.

$shipping_price=$item;
Last edit: 10 years 1 month ago by bram.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #2976 by Salv8282
Hi Bram,
I've seen your frontend URL and I need to achieve something that is similar concerning the merchant logo.
May you give me some adivices how to realize it?
thank you very much.

Please Log in or Create an account to join the conversation.

Time to create page: 0.233 seconds