Paypal One fixed Shiping fee with mutiple items - html

I'm in the process of integrating a site with PayPal, I have added the HTML code (see example below) for each of the products. The only problem is if a customer adds one or more different items to their basket they are charge double the shipping, for example if I got item A the p&p is £4.95 if I then get another item lets say item B the shipping is now £9.90... I'm going to be sending all orders via one package so is there a way to setup my shopping cart so the shipping is just a total of £4.95 no matter how many items the customer has added to their basket?
https://www.paypal.com/cgi-bin/webscr?business=luorders#outlook.com&cmd=_cart&add=1&shopping_url=http://www.lockersunleashed.com&currency_code=GBP&amount=7.50&item_name=Orange%20Carpet%20SKU%20LU%20C3&shipping=4.95&shipping2=1.00&country=GB

If instead of setting a shipping price for each item you let it calculate to paypal?
I know you can set it in your business account
https://developer.paypal.com/docs/classic/admin/checkout-settings/#calculating-shipping-charges-automatically

Related

Clean Architecture - How to manipulate a List? In Presenter? Or UseCase?

I have in my domain layer one entity called Product.
class Product{
String barcode;
String name;
String barcode;
double price;
int amount;
}
My UI has a Product list and when I touch the barcode scanner button, the camera read a barcode and increment the Product in UI Product List. If there's no Product in List with the same barcode, the app will add this new Product, but if there's some Product with the same barcode, the app will increment the amount of this Product.
In which layer should I add this rule? Should I do this verification in UseCase? Or in Presenter?
Because I could have 2 UseCases:
The first one will expect a barcode, and will return a Product with the same barcode.
The second will expect a Product, and will increment the Product amount and return itself.
And I could use the Presenter to verify if in list has some product with the same barcode, if there's, the Presenter will call the second UseCase to increment the Product amount. Else, the Presenter will call the first UseCase to return a new Product and then, the Presenter will add to List.
Or Should I do this all verification in UseCase? I mean, the Presenter always will call just a UseCase that increment the Product and expect all the List and return all the List.
So my UseCase will verify the List passed as a parameter, if the Product exists in list, the UseCase will increment and return the List, if the Product doesn't exists, the UseCase will return the List with the new Product.
I know that UseCase should have all the business rule, and this rule "add a product if it doesn't exists or increment it amount if it does" its like a business rule. But I don't know a way to make the UseCase use this rule.
It seems that you have 2 use cases:
addScannedProduct
The addScannedProduct use case needs access to a repository that returns a product by a bar code.
addProduct
The addProduct use case retrieves a product by a product id from the repository.
Usually you will also have 2 controllers that handle the different user interactions.
One controller that listens to the scanner result or get triggered by the scanner. This controller invokes the addScannedProduct use case.
One controller that listens or is triggered by a butten press or any other kind of user interaction. This controller invokes the addProduct use case.
Consolidate the product list in the presenter or not?
The question is "Is the rule UI dependent or UI agnostic.". So Ask yourself "Should a product list in another UI also be consolidated or not".
I guess that the product list should be consilidated independent of the presentation. Thus I would put that consolidation in the use case.

How to hide tax , shipping & handling from cart and checkout

I am using Magento version: 1.9.2.2
I want to hide tax, shipping and handling from cart and checkout page of my app but didn't get any success been trying from last two days.
Followed some solutions(links attached) from the forums and various Websites but not getting any success for this please help to find any solution for this.
links which I've followed for this:
didn't work:
https://magento.stackexchange.com/questions/31603/how-to-remove-tax-from-cart-page,
https://magento.stackexchange.com/questions/54375/how-do-i-remove-total-excl-tax-from-cart-review-page
almost done the trick but tax appeared as soon as I logged in https://magento.stackexchange.com/a/63352 ,
Worked for a short period of time tax magically reappeared after some time
http://michaelsavin.com/magento-hide-tax-summary-from-cartcheckout/
Open admin panel, go to system > configuration > sales > tax > order, Invoices, Credits Memos display settings
then set Display full Tax Summery : No

How to allow signed-in users to delete read items in telescopeapp?

How do I customise my telescope app, such that users can delete or hide an item if they don't want it to be included in the list anymore - for example, if they have already seen it and aren't interested in it. The list of items would then need to be re-ordered, so that the deleted item no longer shows, and all of the items below it are bumped up. I would want it to be possible for a user to delete all of the items individually if they wanted to, and then a message would be visible which would say that there are no items to show.
I essentially want to mimic the 'archive' function in Apple Mailbox where the email is no longer visible in a user's inbox.
Note: the user would only be deleting the item from his own view of the main list, this shouldn't affect the list that any other user can see.
It sounds like you need to add a couple things:
A new view.
A new viewedPosts array as a custom field on the user object.
A markPostAsRead method that adds a post to that array.
Some kind of UI control to call that method from the client.
The view would use the current user ID to retrieve the viewedPosts array from the user object, and then filter out any posts that are included in that array both on the server and client.

xpath finds element in developers console but not in scrapy.response

I'm trying to scrape the price from the first ticket here page using this xpath:
'.//*[#class="price"]/text()'
This works in the developer's console, but not when I run it in the scrapy shell using response.xpath. I have also tried to following in the shell:
'.//*[#class="initial"]/div[#class="price"]/text()'
and
'//*[#id="tVB901769989"]/div[1]/div[4]' (although I don't think that the id property can be used in the shell like this).
Is there something wrong with the xpaths that I've used, or is there some thing different with the way the page works? Any help would be appreciated. Thanks!
this happens because you are checking at different requests, the page you see doesn't have the information you need inside that file, but it gets it dynamically, in this case from: www.vividseats.com/javascript/tickets.shtml?productionId=1771684
There you can check the prices on json format, I think this is for one item:
{
"s":"Section 111",
"r":"8-22",
"q":"4",
"p":"692.00",
"i":"VB782041491",
"d":"111",
"n":"Zone Seating. The seller is committing to procure these tickets for you upon receipt of your order. After you place your order and your order is confirmed, we guarantee that your tickets will be within the listed zone
or section listed or one comparable and that you will receive these tickets in time for the event or
your money back. Orders exceeding four tickets may be split up into different rows within the requested
zone or section.",
"f":"0",
"l":"Section 111",
"g":"0",
"e":"0",
"h":"07/21/15",
"t":"0",
"v":"",
"c":"84352",
"z":"1",
"rhdn":"0",
"ind":"0",
"sd":"0"
}
where p contains the price.

Trac Advanced Reports

I have a trac report that displays how many tickets are at each stage of the workflow. Is it possible to make reports dynamic, so if a row is clicked a report for those tickets are shown.
SELECT stage,
count(status) as 'Number of Matches',
id as _id,
'[..1] Tickets Here' as link
FROM ticket
Failing that, it would be useful to have a link to another report that shows all the tickets at that stage but links are seen as text in the report.
[..1] Tickets Here
You can also make dynamic reports using wiki pages. Personally, I find that to be the easier approach most of the time.
For your purposes, you could have something like this:
== Open Tickets, By State ==
[report:4 New] ([[TicketQuery(status=new,format=count)]])\\
[report:5 Accepted] ([[TicketQuery(status=accepted,format=count)]])\\
[report:6 Code Review] ([[TicketQuery(status=codereview,format=count)]])\\
[report:7 Testing] ([[TicketQuery(status=testing,format=count)]])
This will result in output that looks like:
New (40)
Accepted (12)
Code Review (8)
Testing (17)
where the name of the state is a link to a detailed report listing all of the tickets in that state. You will need to create a report for each state and fill in the correct report numbers for the report:# links in the example.
If you are interested in viewing this information per milestone then you might do well to customise your milestone page instead of creating a separate report. This page explaining how to create custom state groupings in the milestone progress bar will be useful to you in such case.