FAQ Database Discussion Community


Prestashop 1.6 product_list: get number of attached attribute combinations

php,e-commerce,prestashop
I'm building my first prestashop. I have a couple of products with attribute combinations that have an impact on the price. In list views, I would like to detect if a product has more than one combination attached to it, in order to display a 'from' before the price. I...

Native Mobile app for presta shop [closed]

php,android,e-commerce,prestashop-1.6
I want to develop a native android application for my PrestaShop store. I have been searching on Google for a while but all i found was third party applications that says they can create an application for mobile. The documentation doesn't provide a clear answer as well. Does prestashop provide...

Is it a good practise store the checkout steps fields in php $_SESSION?

php,session,e-commerce,checkout
I have my e-commerce site with three checkout steps, each button to continue is a POST action and redirect to the next step: if the user navigates by the checkout steps (click on the previous button for example), the form fields don´t show the data posted previously. This form fields...

Broken references in Virtocommerce vc-community-webadmin v1.13

azure,e-commerce,virtocommerce
I just started using Virtocommerce v.1.13 and have two questions for developers and two tips for those who is the newbie as me. The problem I downloaded vc-community-webadmin from Github/webadmin then I open solution and run Nuget for restoring all packages need nevertheless, when I try to build the solution...

SQL Noob compare table in opencart

sql,database,phpmyadmin,e-commerce,opencart
I have one table called VEGAN with model numbers that i want 3800 rows with model or SKU codes. thats it. In the main oc_products table there are 15000 products / rows with over 20 columns, In one of those columsn there is a control for enabled which can be...

magento - change URL for all links

php,.htaccess,magento,phpmyadmin,e-commerce
it works with http://localhost.magento-store.com/index.php/fashion.html but i need it http://localhost.magento-store.com/fashion.html the .htaccess file includes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /magento-store.com/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /magento-store.com/index.php [L] </IfModule> the base URL in database is http://localhost.magento-store.com/ Admin panel: SEO-> web server rewrites : yes use...

Existing eCommerce Framework vs custom eCommerce solution for Scalability [closed]

php,woocommerce,e-commerce,prestashop,scalability
We are planning to start an ecommerce startup and are evaluating scalability options for choosing between (PrestaShop/WooCommerce/OpenCart) or our own custom ecommerce solution. We have thought of the following optimization techniques for scalability: 1) CDN for static resources. 2) Load balancer for horizontal scaling once the traffic goes high. 3)...

Supplier login when using spree-drop-ship

e-commerce,spree,marketplace
I'm working on a marketplace website. The idea is to allow for suppliers to login, add their products, view orders, generate reports etc. I'm using Spree Commerce, and I see everyone suggesting to use spree-drop-ship extension to achieve all/part of above.(it's not really clear from the documentation, all the features...

Dx trouble writing output: already prepared… - Error in console

java,android,eclipse,e-commerce,braintree
braintree-api-1.6.1-full.jar android:minSdkVersion="14" android:targetSdkVersion="18" I need to implement braintree inside my android app which has no issues, but as I copy the braintree jar file, into my projects libs folder and import the necessary classes, my app crashes. Full error message in console: Dx trouble writing output: already prepared [2015-06-18...

How can I allow users to get paid directly with stripe?

ruby-on-rails,e-commerce,stripe-payments,marketplace
I've looked at stripe connect and it forces each user to impute their Social Security number and etc. just so they accept payments for a item they want to sell. Is there a less painless method where users can sell something on my site, receive monies, and buy from other...

Rails 4 e-commerce customization: Products from existing model

ruby-on-rails-4,e-commerce,customization
I am building an internet shop for collectible items and I am stuck with the e-commerce solution. One of the biggest difficulties for me is that there are around 100 000 different collectible items, and most info regarding the products in question are parsed from the producer's site. Now the...

Data submitted to GA account doesn't appear in there

javascript,browser,google-analytics,e-commerce
I need to manually submit an ecommerce data to my Google Analytics Account, so I created an html file and opened in a browser: <html> <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','http://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxxxx-1', 'auto'); ga('send',...

Why i can not access image while using azure blob as storage provider in virtocommerce?

azure,e-commerce,azure-storage-blobs,virtocommerce
I'm using azure blob as storage provider, after i save images for products, i can not see the images in front-end, the image url is correct, but it returns error: The specified resource does not exist I think this is something related to azure blob permission. Can someone help me?...

Updating fields of model using forms and views on Django 1.7

python,mysql,django,forms,e-commerce
In models.py my Product model is class Product(models.Model): productName = models.CharField(max_length=20, default='1',blank=False,null=False, primary_key = True) userPhone = models.CharField(max_length=20, default='1') userid = models.ForeignKey(Account, default='1',null=True) productDesc = models.TextField(blank=False,null=False, default='1') productCategory = models.ForeignKey(Category, null=False, default='1') productPrice = models.DecimalField(default='0',blank=False,null=False, max_digits=6, decimal_places=2) picture =...

Get a list of all magento catagories and their id's on screen when I visit a php file

php,magento,e-commerce
So I want to create a PHP file that will return a list of all product categories from magento and their id's when I visit this file. For example, when I visit mysite.com/category.php it should show me a list of all categories and their corresponding id's. I have searched stackoverflow...

Displaying all woocommerce product liks with title in Footer for SEO - Wordpress PHP

php,wordpress,woocommerce,e-commerce
I am wanting to display all woocommerce products with links with the woocommerce title on the links top help my SEO. I have managed to find some code below which gets the product categories but cant seem to get the code to display all products with the title on the...

Magento realtime data integration

php,api,magento,plugins,e-commerce
this could possibly be answered somewhere allready, but unfortunately I could not find the answer that would suit me. The question is, can Magento be used only as a front end E-Commerce platform? That is read product nad customer data from external API, and also submit that data to external...

payment module not working in magento

magento,e-commerce,magento-1.9,magento-1.9.1,amazon-payments
I have a magento store, and it's payment module is not working. I can add my shipping method, but after submitting shipping method, it won't proceed to payment mode, I have enabled cash on delivery. and I have an amazon payment extension also. When I checked in console, there shows...

How to specify what “list” the product was added to cart from? Enhanced Ecommerce

javascript,google-analytics,e-commerce,implementation,product
Trying to implement Google Analytics Enhanced Ecommerce tracking for my website. How to specify what "list" the product was added to cart from? Here is the standard tracking code for adding the product to basket: // Called when a product is added to a shopping cart. function addToCart(product) { ga('ec:addProduct',...

Broadleaf - Extending DemoSite Admin - Add new Menu and Page

spring,e-commerce,broadleaf-commerce
I have been looking into Broadleaf since last couple of days. I have managed to run it on local tomcat with MySql. I have extended Entity for my custom requirement following Broadleaf's documentation. Now I want to add a menu option (in left menu) in admin. I have no clue...

How do I use jQuery to make websites more dynamic?

jquery,html,css,e-commerce,dynamic-websites
I'm new to jQuery and learning how to make it interact with my actual code so the pages are more interactive but I'm a bit confused with all the functions. I understand the principles of jQuery which I find quite easy but, I just don't really know how to call...

Mage_Core_Model_App' not found magento XAMPP

php,magento,e-commerce,fatal-error
I am setting up magento on my mac in XAMPP server but when I hit the url: http://localhost/magento/ I get a error message : Fatal error: Class 'Mage_Core_Model_App' not found in /Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage.php on line 636 does any one know what exactly issue? thanks in advance....

Prestashop 1.6 display custom field in Feature Add/Edit form

php,smarty,e-commerce,prestashop,prestashop-1.6
I am able to display my custom field in Feature Value Add/Edit form by overriding AdminFeaturesController and overriding initFormFeatureValue() function. I want to do the same for Feature Add/Edit form but cannot find function to override. I tried renderForm() function but didn't work. Which file/class/controller/function should I look into to...

How to remove LineItem instance from an order (Spree)

ruby-on-rails,e-commerce,spree
I'm working with Spree, but I'm not completely familiar with the built-in methods. I'm trying to make it so that when params[:quantity] == 0, the line_item instance gets deleted and removed from the order. I've tried calling destroy! on the instance but that hasn't worked, as well as a few...

how insert data directly and only into HABTM table ,

cakephp,e-commerce,has-and-belongs-to-many
I have 1 Category table and second Features table and have association among them is HABTM in cakephp Now i don't know exactly how to insert values in categories_features table. I used HABTM before but at that time i insert values in this table when one item is created by...

Uploading products from excel file

excel,import,e-commerce,product
I was wondering what is the best way of importing products into database. Product names have unique sku's. The Excel file may contain existing sku's. One way of doing import is: Read record from excel Check sku for existence in database table if already exists, update it or if not...

oAuth Client module for PHP

java,php,magento,oauth,e-commerce
I have to create my own oAuth provider and need that provider to be integrated with PHP application (Magento). I am done with my Provider in Java with spring security but now I am not clear how I can integrate it with magento, Do I need to write a module...

Shopify - Different prices based on country

e-commerce,shopify
Does anyone here on stack know if it's possible, in Shopify, to use different prices for different countries/regions i.e. i want a product to cost 10€ in Europe but 10$ in North America? Most important to know whether it's possible or not (trough out the shopflow) Implementation advice would be...

Mailchimp Ecommerce360 Javascript Implementation

javascript,rest,e-commerce,mailchimp
Wondering if anyone can provide an example of how to pass a request to the /ecomm/order-add function of the Mailchimp API using javascript. This is critical for making use of Mailchimp's Ecommerce360 tracking. Here is documentation from Mailchimps API: https://apidocs.mailchimp.com/api/2.0/ecomm/order-add.php...

PHP Comparison Inversion

php,html,mysql,e-commerce
Following code is from an excommerce shipping module: if (!IS_ADMIN_FLAG) { global $cart; $chk_products_in_cart = 0; $chk_products_in_cart += $_SESSION['cart']->in_cart_check('products_id', '12'); $chk_products_in_cart += $_SESSION['cart']->in_cart_check('products_id', '22'); // do not show florida 18 and new york 43 $chk_delivery_zone = $order->delivery['zone_id']; $chk_states = '18, 43'; $arr1 = explode(", ", $chk_states); $arr2 = explode(", ",...

How to add admin login link on a website? [closed]

login,e-commerce,usability
I have a login and registration page where user can login and place an order. I have already crated a adminlogin , adminlogout, adminorder page to do the admin related task. But im not sure where to add this admin login link. Sould I add this link to the menu...

FrontEnd Magento Hello World Not Working

php,magento,e-commerce
Please help with this newbie magento tutorial, I've been struggling with this for 2 days.. Using XAMPP 1.7 and magento 1.9.1... I already create the magento directory & file structure like this: -htdocs -magento -app -code -local -Practice -Mymodule -controllers IndexController.php -etc config.xml -etc -modules Practice_Mymodule.xml And this is the...

Should I add engine's code to the app itself if I'm going to modify it a lot (Spree, Rails)?

ruby-on-rails,e-commerce,spree,rails-engines
I'm starting a new app with Spree and I'm going to heavily modify it. It seems impractical to go to source every time I need to change something. Should I just copy paste contents of spree/front_end engine to my app or should I do: Spree::Product.class_eval do def some_method ... end...

Change layout in Lightspeed Webstore

php,yii,e-commerce
I've got a custom controller in my Lightspeed Webstore (an ecommerce framework built on Yii 1.1) By default column2 is always the selected layout for pages, and I'm unable to change this. Here's my example controller: <?php class ExampleController extends Controller { public $layout = "column2"; public function actionIndex() {...

Google Tag Manager and dataLayer interraction

e-commerce,google-tag-manager,google-datalayer
I use GoogleTagManager script and dataLayer object. I read in documentation that dataLayer object has to be filled above the GTM script. But I need to add a product detail when the user chooses the product and it happens after the GTM script is loaded. If I use dataLayer.push(chosenObject) will...

ElasticSearch in e-commerce: multiple categories for a product

elasticsearch,e-commerce,categories
How do you index products like that in ElasticSearch? We've separated all documents based on the attributes (colour, brand, size, whatever users input), but all of them belong to a set of categories. May be one, may be 15. [0] => Array ( [product_id] => 123456 [product_name] => Shirt 1...

Prestashop 1.6 Module error: Notice on line 719 in file prestashop16\tools\smarty\sysplugins\smarty_internal_templatebase.php

php,smarty,e-commerce,prestashop,prestashop-1.6
I'm developing a module and extended AdminFeaturesController.php to display my custom field Add/Edit Feature Value, but it is showing following error in popup: Notice on line 719 in file D:\xampp\htdocs\prestashop16\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: value I think it is due to I override the function initFormFeatureValue() in my...

Unable to call magento admin controller

php,magento,e-commerce,magento-1.9
I have created a custom module that adds two menus in catalog. I have also created a controller for one of the menu , but the controller never gets called but instead is redirected to the admin dashboard page. My question is some what related to this question Magento admin...

Algorithm/formula to calculate Product ranking on a ecommerce website(Based on following criteria)

algorithm,elasticsearch,e-commerce,ranking,ranking-functions
I have been Working on algorithms and formulas to find out a score for the products available on my ecommerce website.Basically, I want to calculate some kind of score to rank the products when a user searches it. I'll give some background on the criteria i am planning to define...

403 Error when trying to remove products from Cart

php,server,e-commerce,opencart,cpanel
I am using a cPanel host and running PHP 5.5. Opencart version 1.5.1. When I try to remove a product from the cart I am getting a 403 forbidden error. This only seems to happen with products that have a lot of options and include text input options. I have...

Display item list in shopping cart using PHP

php,e-commerce,session-variables,shopping-cart
With the foreach loop I'm trying to connect to my database and display in a list the products that have been added to the cart. Each product has a product ID which is correctly working and being stored in the session variable through the cart.php. I can't figure out how...