Ecommerce - allow user to add products [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have just started using opencart, but I'm good with moderate php. In opencart, the only way to add products currently is through the admin panel. I would like to let users have the option of adding products, without seeing any of the admin panel, like ebay without the auction or amazon. I tried looking at the database to see how it is organized, but there are WAY too many tables. Also, I can't locate the php script that inserts the new product information into the database. Does anyone have an extension or at least know how opencart inserts the product in the database?
Thanks for all the help and sorry for the paragraph.

The file you are looking for is /admin/model/catalog/product.php. You will see that there is a method called addProduct which you will have to replicate, remove anything that shouldn't be accessible and you'll also need to create the form for it too. For more info on the MVC, check out this answer

Related

Displaying each product detail in an online shop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
i'm new to php/html5 etc and i want to create a simple ecommerce site.
I want to put button that will show the more detailed information of the product. My question is, if the button redirects the user to product page does this means i have to make a page for each products?. So, if i have 100 products i have to rewrite 100 page?, Is there a better approach to solve this? Sorry if this is a silly question. thank you
i'll just put random code here because the damned restriction
<?php
session_start();
include_once("shop-config.php");
include("header.php");
?>
A better approach would be to store the products as well as their description in a database, then have one page where you can request that information. I recommend looking into MySQL because it works natively with PHP and it's very easy to use. Once you get the basic queries down and an understanding of SQL, it shouldn't be a problem. :)
(I know this isn't much of an answer, but I don't have my computer on me now and for some reason I can't leave a comment because of my reputation. I guess it's better for new users to spam pseudo-answers than comment xD)

how to get prices from Playstation Store [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I guess it is loaded by ajax.
I already tried CURL, DOMDocument and PHP Simple HTML DOM Parser
Details:
I'm trying to get the price of games on Playstation Store. I have an url like https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001 and I want to get the price. <div class="price">$19.99</div>
I just noticed that if you check the source code of the page, it does not have any element displayed on page, that is because I believe all is loadaded by something like ajax and I guess PHP parses will never work here.
I tried Jquery AJax(), Get() and Load() functions and I did not get success. Some problem with crossdomain.
There is a website called PSN Prices that can do it.
Additional Info:
It is totally for personal purpose, I just want to do some kind of wishlist and follow prices by myself.
Sorry my english.
The price is retrieved through JSON:
https://store.sonyentertainmentnetwork.com/chihiroview/storetree2?https%3A%2F%2Fstore.sonyentertainmentnetwork.com%2Fstore%2Fapi%2Fchihiro%2F00_09_000%2Fcontainer%2FUS%2Fen%2F999%2FSTORE-MSF77008-BASE%3FsessionCountry%3Dus%26sessionLang%3Den%26geoCountry%3DPT%26size%3D30
search for 19.99
"display_price":"$19.99"
EDIT:
Game url:
https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001
JSON url:
https://store.sonyentertainmentnetwork.com/store/api/chihiro/00_09_000/container/US/en/999/UP9000-NPUA80677_00-SOTC000000000001
Using http://jsonformatter.curiousconcept.com/ to make it easier, it seems you need to get
default_sku->display_price
Have you tried include the site (with the price) within an iframe and then accessing the data with javascript/jquery?

How to get wordpress source code of theme in php [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
i have a site which is designed in wordpress. I have evrything that wordpress gives.like admin name password.database.But i dont have the admins password by which i change the setting in wordpress theme.is there anyway to get the theme's source code that my site has.I like to change the site without entering admins panel.i like to change it using only code is there any way to do that.I will appreciate any help.
From your dashboard, look on the left side panel and choose appearance > editor. Once there, look to the right of your screen and choose which part of the site you'd like to edit (posts, stylesheet, etc). This is where you can do changes.
I think this is what you were asking for.

create a form similar to a website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Help please create a form similar to a website.
How can i achieve a form like in this website www.myclean.com, i already got the first step in the form which is the slider and checkbox.
Now I need to know how to process that information and put it in the another page please try the form in this site www.myclean.com.
I can only think of php to do this get or post, do you have other ideas?
Thanks! :)
here is what I did in my slider and checkbox.
jsfiddle.net/z2zaz/9/
You can process the form in nearly any language you'd like, or you can email the results to yourself, but I'd recommend against that due to all the spam bots.
The language doesn't really matter. PHP is a fine solution, if that's what you're asking.

Transferring an ecommerce website from CoreCommerce to OpenCart [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm in the process of converting a CoreCommerce website into OpenCart.
CoreCommerce is a hosted e-commerce application.
I need to export customers, orders, products, categories, and reviews (or hopefully as much as I can). The corecommerce exported customer CSV file does not contain their passwords. Do you know how this will work out? Should I just create random passwords for each customer and email them and let them know? There are about 16000 customers.
Also, do you have any experience with any of the CSV import tools for OpenCart that you can recommend?
Thanks
Just ask your customers to reset passwords when they did not already and they try to log into your site.
I'd first inspect the CSV files then create a php function to import all correctly since i don't think both applications have the same database fields.

Categories