I am using mezzanine + cartridge for a shopping cart.I want to use the concept of reward points(like discount coupon) in it and users who have enough reward points so that they can pay through them and want to use them then at checkout time the payment details step must be disabled for these users and order is placed.
So I just want to know how I can disable this payment step in cartridge. Anybody who have used cartridge in their projects can tell me it is feasible or not. and if yes then HOW ?
There is one module of discount coupon in cartridge but it does not fulfil my requirements so I am not using this.
Thanks.
This is completely feasible. Cartridge is just a Django application.
Is there a one-to-one ratio of reward points to your local currency?
I might start by extending the Account model with a cartridge.shop.fields.MoneyField called "reward_points". Next, add the necessary fields and logic to a customized version of cartridge.shop.forms.OrderForm.
Your best option for getting timely and accurate answers to questions about Mezzanine and Cartridge are the #mezzanine channel on Freenode and the mezzanine-users Google Groups mailing list.
Related
I am building the issue tracker application similar to the one in oracle docs.
https://docs.oracle.com/cd/E11882_01/appdev.112/e11945/issue_track_obj.htm#BABIIBBF
In short a dynamic approval workflow, where multiple approvers can be added or deleted using tree structure.
I am not asking anyone to design this for me, but any help in atleast giving a brief overview of how this can be done or if someone has done it, maybe tips would be very valuable.
Vini,
From a high level you would need to define a DEPT_APPROVERS Table which lists for each department who the individual approvers are. Then you could send notifications to all of the approvers listed based on which Department is assigned to the person making the request.
Regards,
David
We have different instances of websites some of them with up to 4 multisites each. They have their own XDB backend.
We have a requirement below:
Able to track the user between each sites. When user visits the dental site and comes to company main site then show the carousel
banner with dental Ads.
When user fills up the form or download certain PDF documents, increase the accumulated goals. e.g. if user visits dental site and
fills up form (worth 10 points) and goes to different site and
downloads pdf (worth 5 points). The total goal value accumulated
should be 15.
Should be able to view the exact same user profile details (on each instances).
I understand we could use Federated experience manager, but above all are sitecore instances.
Would you able to help us how above can be achieved?
e.g.
Do we need to share same xDB and analytics Databases for ALL INSTANCES?
Does all sites need to be on SINGLE instance to achieve above?
Is it possible to share goals, personas, segments setup between different instances?
Any other recommendations?
Finally how does sitecore works out the predictive personalization i.e. it reads the xDB or analytics or something else?
Thanks.
Do we need to share same xDB and analytics Databases for ALL
INSTANCES? Yes.
Does all sites need to be on SINGLE instance to achieve
above? All sites can exist on separate instances, not an issue here.
Is it possible to share goals, personas, segments setup
between different instances? Yes share the xDB among the instance, setup Database replication in CD and make sure machine key are same Please note that there lot of other things to be considered for coming to conclusion on this point.
More reference links:
http://digital-learnings.blogspot.in/2015/12/sitecore-multi-site-or-multi-instance.html
https://doc.sitecore.net/sitecore_experience_platform/developing/xdb_overview/scalability_options
http://www.nonlinearcreations.com/Digital/how-we-think/whitepapers/Whitepaper-Planning-your-Sitecore-xDB-infrastructure.aspx
Is there any tool, plugin or technique that I can use to help identify n+1 queries on a Django application? There is a gem called bullet for Rails that identifies n+1 queries and logs or pops up warnings in a number of ways but I haven't been able to find anything similar for Django. I'd be open to guidance on how to write my own plugin if no one knows of an existing solution.
nplusone does this
Auto-detecting the n+1 queries problem in Python
https://github.com/jmcarp/nplusone
comes with proper django support! also integrates with flask, vanilla wsgi, ...
I don't know any plugin that would find them automatically and warn you.
I personally use the Django Debug Toolbar:
https://github.com/django-debug-toolbar/django-debug-toolbar
It shows the number of queries ran on a page and you can view them.
Scout, an APM product that supports Django apps, identifies expensive N+1 queries in production.
Here's how to use it:
Install the scout-apm Python package (MIT license) and provide your Scout API key. The API key is found in the Scout web UI.
Deploy your app, confirm Scout is receiving data, then check back in an hour or so. Scout analyzes every web request, checking for N+1s, and then displays the worst performers on a dashboard (screenshot).
Select an N+1 you're interested in to reveal a transaction of the request that triggered the N+1. This includes the raw SQL of the query and a backtrace to the LOC that is triggering the query (screenshot).
An advantage to Scout over a development tool like Bullet: most development databases have a small amount of data, so the true impact of an N+1 is frequently unknown. Scout identifies just those N+1s that are consuming significant time, which can help focus your efforts.
This is just a general question, but I'm wondering if there's an existing API that displays the current price for an item on Amazon? As in, if the price changes, the site will reflect that change as well.
If not, would building a web crawler to go through and find the Amazon items of my choice be the best way to build my own version of this? If so, what language would you recommend to begin this sort of project.
I'm not sure if I should have actually asked this in SuperUser but I appreciate the input. Thanks guys!
There are plenty of web crawling services for this task.
https://import.io/
https://www.kimonolabs.com/
http://www.diffbot.com/
If you want to make your own, I recommend node.js because it's asynchronous behavior.
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 shop itself will operate in the secondary (second-hand) market. So I need a solution, that would allow me to create products based on the existing ActiveRecord objects, or (ideally) use products, that are preconstructed in my custom backend.
The big question is thus. Which is the best approach to e-commerce for this highly custom product model?
Does, for example, Spree support customization of the product
creation process? If yes, where can I read about it in detail?
Is there any solution, that is more suitable for this scenario?
If I was to develop my own e-commerce solution: where can I find a robust tutorial, or read about the basic architecture and gems
required.
Thanks in advance!
"create products based on the existing ActiveRecord objects" -- that doesn't sound hard, sounds like a rake task
"or (ideally) use products, that are preconstructed in my custom backend" -- not sure what that means.
"Does Spree support customization of the product creation process" -- sure does, but what customization are you talking about? Take look at Spree's Option Types & Option Values, those should be customizable enough to accommodate pretty much anything.