e-commerce

Install Fixtures in Sylius - Symfony2

a 夏天 提交于 2019-12-10 17:14:05
问题 After having successfully installed and updated all vendors in my project folder for Sylius i tried running this code : app/console sylius:install --fixtures I get this error : PHP Fatal error: Class 'ResourceBundle' not found in C:\wamp\www\sylius\vendor\ symfony\symfony\src\Symfony\Component\Locale\Locale.php on line 51 Then i tried all possible solutions given here Installed intl extension in php (working successfully).Then ran this command php build-data.php 'your ICU version' On running

Magento get which layout being used on phtml files

喜你入骨 提交于 2019-12-10 17:11:19
问题 Is there a way I could get which layout being used on a certain phtml files? Here in my case, I want to check what layout being used on catalog/list.phtml, I used that information to make conditional "if" on the product image grid size. I've tried to google it out. But all the result is just explaining about xml layout things. The closest clue I got is this thread Magento get layout for given page which stated the use of this snippet $left_block = $this->loadLayout()->getLayout()->getBlock(

Magento - Fatal error: Class name must be a valid object or a string

风格不统一 提交于 2019-12-10 13:29:23
问题 I'm having a problem with a Magento installation that I hope someone can help me with. I suddenly started getting the following error message when I accessed the site: Fatal error: Class name must be a valid object or a string in /app/code/core/Mage/Core/Model/Resource.php on line 215 The function that this refers to is: /** * Get connection type instance * * Creates new if doesn't exist * * @param string $type * @return Mage_Core_Model_Resource_Type_Abstract */ public function

JS Analytics Ecommerce callback

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:19:19
问题 I couldn't find anywhere how to use hitCallback parameter with google analytics ecommerce:send . In docs its only example is with send,pageview . Here is the code I tried: ga('ecommerce:send', {'hitCallback': function() {window.location.href="/test.php";}} ); but it didn't work although the tracking worked. 回答1: I ran in to the same problem and, having looked at the source code, there's no clean way to do it. The thing about ga('ecommerce:send') is that internally it calls - ga('send',

Automated PayPal payments

落花浮王杯 提交于 2019-12-10 12:58:42
问题 I'm looking for a way to automatically send money from my PayPal account, to other PayPal accounts; via PHP. Is this possible? Something like: $recievers = array("client1@email.com" , "client2@email.com"); $myAccount = "me@email.com"; $myPassword = "letmein"; $amountToPay = 20.0; // $20 USD foreach($recievers as $payee) sendMoney($myAccount, $myPassword, $payee, $amountToPay); //Is this possible? 回答1: Yes this is possible. You might want to look into Paypal's Mass Payment API. 来源: https:/

Audit logging for products data?

烈酒焚心 提交于 2019-12-10 10:43:15
问题 When the staff change the information of product name, option name or prices. It should insert the data into history log and who done it. items table: item_id (PK) item_name item_description Note: item prices are in the item_options table item_options table: option_id (PK) item_id (FK) option_name option_price A item can have 1 or more options. If I want to change the name items.item_name , It should copy the current record to the history table, delete current record from items table and then

Demandware | Technology stack | Salesforce Commerce Cloud

自闭症网瘾萝莉.ら 提交于 2019-12-10 09:48:58
问题 Basically I am a PHP Developer and very soon moving to Demandware Platform. I would like to Know what are Languages and technologies which are used in Demandware and like to start learning myself. Please help. 回答1: See I want to start learning Demandware Salesforce Commerce Cloud Digital Platform (previously Demandware) is a SaaS ecommerce platform, that uses server-side JavaScript for creating customizations on the site logic. 回答2: Demandware itself is written in Java but the coding syntax

Relationship between orders, customers and products?

穿精又带淫゛_ 提交于 2019-12-10 09:46:34
问题 I am trying to construct an e-commerce database but I don't understand relationship between orders, products and customers. There are lots of database examples but they are too complex. Is there a simpler explanation or an example about possible tables and relationships. Thanks. 回答1: This is the simplest form if customers can have more than one order and orders can be for more than one product: The ORDER table has information about the date and status of the order. The ORDER ITEM table has

Magento getUrl not working with catalog/category object?

邮差的信 提交于 2019-12-10 02:46:56
问题 I've been able to instantiate a category object to retrieve its name, but when I use the getUrl method it isn't returning a URL to the category listing page, or anything at all <?php $children = Mage::getModel('catalog/category')->getCategories(3); foreach ($children as $category): echo '<li><a href="' . $category->getUrl() . '">' . $category->getName() . '</a></li>'; endforeach; ?> The code above results in HTML output of <li><a href="">name of sub-cat</a></li>` Does anyone know how I can

How do i enable a third party payment gateway (not supported today by Shopify)

淺唱寂寞╮ 提交于 2019-12-09 18:47:49
问题 In india, Shopify supports the following payment gateways: Citrus Payment Direc Pay PayU India PayU Paisa But we have an existing merchant account with Axis Bank. I have no idea where to configure my Axis Bank Payment Gateway with Shopify. So the question is: How do i configure my Axis Bank Payment Gateway with Shopify? Is it even possible to add other payment gateways, which asre not yet supported (not listed in their store admin panel) by Shopify? 回答1: You can write a connector for that