cscart - display product timestamp on category and prouct detail page - cs-cart

I'm trying to display timestamp of product in cscart on category and product detail page but couldn't get. It capture date while creating the product.
enter image description here
Any clue would be appreciated.

You can get timestamp from the table cscart_products.

{$product.timestamp|date_format:"`$settings.Appearance.date_format`"}
The value should be added in .tpl or use a hooks to add it, the variable ($product) depend on .tpl you want to display (category page, product page, blocks ...)

Related

How To Create Multiple Attribute In Magento For Product Details Page

I want to create multiple attribute in magento for product details page because i have to show two things on the product details page and they are attribute first of all i have color swatches with the help of attribute i am showing on the product details page the next thing is the google map and each different product has a different google map how to show two attribute in magento product details page any help would be very appreciated
You would need to first create an attribute. Read here on a simple tutorial on how to do that.
To display any product attribute in magento you need the "Attribute Code". Lets say you make a attribute called "Gogole Map" with a Attribute Code "gmap". You would need to open the html for the product detail page which can be found
app/design/frontend/default/[your template]/template/catalog/product/view.phtml
and just add the following code to where you want to place
<?php echo $_product_getGmap();?>

Create magento product that links to an external website

I want to add a product that is not held on my magento website. It must only show on my website. But when a customer clicks on a product it directly goes to the website that holds the product.
I want to give the URL to the product on the site. I am not sure how to do this. Please help me. Thanks.
Here are some screen shots that show what I actually want to do:
product show on my website
Customer goes to other website
The way i would suggest you is to create an attribute called external_url, a textinput field. Assign it to required attribute sets then, while adding product if that particular product will be linked to external; input that field with external url.
And while populating product in listings, check if that external_url attribute value exists or not. (for eg on template/catalog/product/list.phtml check for this value $_product->getData('external_url'))
If the value exists then, change the product link(on product list.phtml change $_product->getProductUrl() with our $_product->getData('external_url'))

How to display Category list at search result page in magento..?

I want to display categories instead of product result. if anyone search product name, then result should be category which contains that product.
Is it possible in magento?
Thanks
Magento does not have this feature.
Magento search depends on product and it Eav Attributes.
If you want then you need create custom extension and custom module

Keep the fix price for configurable Product while choosing the attribute also but change for second place

In my site i am using configurable product and Price is showing at two different place in Product page. One is near product and one is at bottom of all details and i am giving label as "new subtotal". And the both price is changing based on what attribute i am selecting but what i want is to change price at one place only at bottom "New subtotal" label and i want to keep top price is fix even changing the attribute. I tried by doing some changes in view.phtml file to get price using getPrice() but it giving me the fix price at both places. Can anyone please help me.
If you are using magento default code in view.phtml then there will be code <?php echo $this->getTierPriceHtml() ?> which display price with html.
In stead of above, just use $_product->getPrice() to display price without default magento html.
Hop this will help.

Filter one specific attribute values from products in magento

I'm new in magento, I'm working on http://www.theartworkgallery24.com/stage/ website. Please check beneath flash banner, there are 4 big images that are links to attributes value from which user can directly go to a product.
I need a page that display on one specific attribute values like in case of artist, it should be Gustav Klimt, Leonardo Da Vinci etc. These should be links to actual product related to the attribute values.
Please tell me how to make your own PHTML or PHP file, which code to use and how, and in last how to call your code in your magento website.
Any ideas will be appreciated, thanks.
You please create an attribute (davinchi) in admin side for these functionality. You can create products attributes from catalog->attributes->menu.After that you can see these attribute value in product creation page.You just assign it to different products
After that you can either create a module for this. Otherwise just create a phtml file in catalog/product/ folder.
then enter the below custom collection code in it.
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToSelect('*');
//filter codition
$collection->addFieldToFilter(array(
array('attribute'=>'davinchi','eq'=>1),
));
This will load products having attribute value davinchi=1.

Resources