e-commerce

Can no longer add registration fields in Magento 1.4.2.0

狂风中的少年 提交于 2019-11-28 00:29:12
I have used this tutorial before for adding registration fields to the Magento registration page . It has always worked, but since I have upgraded to Magento 1.4.2.0 it no longer does. The attributes I add no longer show up under the customers information tab in the backend like it did before and are not getting saved. The attributes install into the database fine though. I thought maybe the config.xml part had changed but I checked it against the core customer one and the attributes are sill shown the same way: <flavour><create>1</create><update>1</update></flavour> Something must have

How to get products from a particular category in magento ecommerce

余生颓废 提交于 2019-11-27 20:16:25
I'd like to get a list of random products from the same category as the current product for displaying within the product view - so far all I've dug up is Magento products by categories Does anyone know how to do this? You basically load up the category, get the Product Collection and then filter appropriately. $products = Mage::getModel('catalog/category')->load($category_id) ->getProductCollection() ->addAttributeToSelect('*') ->addAttributeToFilter('status', 1) ->addAttributeToFilter('visibility', 4) ->addAttributeToFilter('special_price', array('neq' => "")) ->setOrder('price', 'ASC') ;

Display magento products by category ID

送分小仙女□ 提交于 2019-11-27 17:02:28
问题 I need to know how can I display products in a page like (cart, below total) only few products by ID. Eg: products with id 2,3,4 and 5. <div class="freeProducts voucher code"> <?php $categoryid = 64; $category = new Mage_Catalog_Model_Category(); $category->load($categoryid); $collection = $category->getProductCollection(); $collection->addAttributeToSelect('*'); foreach ($collection as $_product) { ?> <a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper(

How do you add the star ratings for products in woocommerce?

笑着哭i 提交于 2019-11-27 13:18:16
问题 I have a woocommerce store and I want to add star ratings to each of the products when you see their thumbnails. I already have the stars in the big product view but I want them to display below each thumbnail like in most ecommerce stores like timberland.com. I know i can use css to disable items from view but not add them. Any thoughts? 回答1: You can put this into your themes functions.php file: add_action('woocommerce_after_shop_loop_item', 'my_print_stars' ); function my_print_stars(){

Android integration with CCAvenue

只愿长相守 提交于 2019-11-27 12:10:32
I have an android app and want to integrate with CCAvenue payment gateway same as flipkart and others.but i don't know how can i integrate CCAvenue because there is no SDK provided. I have used paypal sdk thats so simple to integrate.but not able to integrate CCAvenue. So please help me for this problem. Thanks. Edit: I've not been able to find a good public download link for the Integration Kit, the original links (CCAvenue Link and Xamarin Component Store) are now obsolete. It seems you now have to register as a merchant before you can download the Integration Kit for Mobile: https://www

Determine credit card type by number?

佐手、 提交于 2019-11-27 06:12:26
Can credit card type be determined solely from the credit card number? Is this recommended or should we always ask client for the type of credit card they're using? I Googled about it and found this algorithm: http://cuinl.tripod.com/Tips/o-1.htm , is this reliable? Yes, the site you mentioned is correct. Many sites, incl. Google Checkout I believe, rely on automatic detection of the card type. It's convenient, makes the UI less cluttered (one less input box) and saves time. Go ahead! I have heard one good reason to make them pick (even though you can figure it out). So that they know the list

How to access Magento user's session from outside Magento?

元气小坏坏 提交于 2019-11-27 04:33:50
Im trying to access the Magento customer session in another part of my website. domain.com/shop/ <- Magento domain.com/test.php The shop itself works like a charm, however im trying to determine within test.php if a customer is logged in, so I can display his name with a link to his cart. Contents of test.php so far: <?php require_once dirname(__FILE__).'/shop/app/Mage.php'; umask(0); Mage::app('default'); Mage::getSingleton('core/session', array('name' => 'frontend')); var_dump(Mage::getSingleton('customer/session')->isLoggedIn()); ?> I keep getting bool(false) returned. I'm logged into

How can i generate an API key for Baidu China for an website store locator?

萝らか妹 提交于 2019-11-27 02:57:19
问题 I have been asked by our developers to give them an API key for Baidu maps so they can set up our on site store locator and I'm not really sure how to go about doing this. I tried to set up an account on Baidu but it asked for a chinese mobile number. Do I have to get one of these before I can get the key? And how easy is it to work out how to obtain the key once i've got an account? Can anyone advise on the best way to set this up? Thanks in advance! 回答1: Update 2016: It now appears to be

API For Direct Deposit (ACH, EFT, Whatever) [closed]

依然范特西╮ 提交于 2019-11-27 00:01:54
问题 I'm looking for a way to automate a transfer from one bank account to another, without the end user having to login to something like paypal or amazon payments to complete the process (by transferring their on-line balance to their bank account). I've looked around online a bit, and found some vendors that seem to be able to do that, but API documentation doesn't make me feel sure about it. Can anyone recommend a service they've used to do something like this? Obviously I'm looking for a web

How to create a custom admin page in opencart?

不打扰是莪最后的温柔 提交于 2019-11-27 00:00:21
I want to know how to make a custom admin panel page in opencart. Requires login with the controller - the admin panel does not seem to use the same controller as the normal site. I know how to make custom pages with opencart (but this is not for the admin) A simple Hello World example would be great TheBlackBenzKid OpenCart 2.x The path names have changed in OpenCart 2 - you will want to create admin/controller/extension/module/hello.php admin/language/en-gb/extension/module/hello.php admin/view/template/extension/module/hello.tpl Then the route becomes admin/index.php?route=extension/module