Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am trying to make a clothes store for my clothing label using wp-commerce.
I have set the variations for shirt sizes and they are working ok except that when someone doesn't choose a size it adds the shirt to the cart at 0 cost.
I am pretty new to php and would like to make it so that it is compulsory to select a size when you do this.
Here is the site url http://ownc.co.nz/shop/t-shirts/in-a-class-of-our-own/
Ended up making one of the buttons checked with jQuery to fix this
$('input.sizeBtn').eq(2).prop('checked', true).parent().addClass('selected');
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
created a direct checkout page for a woocommerce product by using this link https://yoursite.com//checkout/?add-to-cart=product ID.....but when i click on this it automatically adds 2 products instead of one... can anyone help me to fix this problem...any snippets...plz help
https://yoursite.com//checkout/?add-to-cart=product ID.....but when i click on this it automatically adds 2 products instead of one... can anyone help me to fix this problem...any snippets...plz help
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I just made an e-commerce website in Laravel 5.4. I need to make product filter like size price brand price. I never did this before, so do you have any tutorial or basic tutorial?
Laravel where clauses fit you perfectly. Make appropriate database structure and then select products what needed.
Product::where('size', 'XL')->get();
More info from this link
https://laravel.com/docs/5.4/queries#where-clauses
If you are new to Laravel then start from here https://laravel.com/docs/5.4/installation
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to add custom drop down option in Magento Checkout Page.
I am using fire checkout in my Magento Store.
I am newbie in Magento and not getting where to start.
I have followed this tutorial but not able to figure out anything.
Please let me know which files should be updated and how can I store that option value in database also.
Any help would be appreciated.
Thanks
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a client who needs an E-Commerce site for his Foam Manufacturing Company. I am making this project using Code Igniter.
Here I have a problem. Each Foam has its own custom cutting. For example we need L Shape foam so we have to calculate length,width and Side Length. If we have square shape then we need to measure Width and Height. If we have O shape we need Radius.
I am confused that how I put all this in one Cart. Is this possible to get different Product's with different options and Sizes?
Secondly tell me how can I get all these product's from DB? Because it is not possible for me to get this multiple type of data from DB.
Please help me I am so confused. I have running Short of Time.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am trying to somehow get the lowest price of a item on the Steam Community Market, I don't seem to see a soloution in the Steam Web API.
So I was hoping one of you smart heads had a solution?
http://steamcommunity.com/market/listings/730/AK-47%20%7C%20Vulcan%20%28Battle-Scarred%29
ex. on that site, the lowest priced auction's price I would like to have returned in PHP.
or even to do it in Objective C would be awesome, thanks you.
Thats how you get the prices for the first page,work a way to identify the currency/loop threw the pages/sort them and you are done.
<?php
$string = file_get_contents('http://steamcommunity.com/market/listings/730/AK-47%20|%20Vulcan%20%28Battle-Scarred%29');
$attrList = explode('<span class="market_listing_price market_listing_price_with_fee">',$string);
$N=count($attrList);
for ($i=1;$i<$N;$i++){
$prices[$i-1] = explode('</span>',$attrList[$i])[0];
}
print_r($prices);
?>