Hi guys.
I am trying to add 3 shipping options in the shipping methods, but these are not appearing when I run the server.
I will try to describe what I have done so far.
1. I installed Django Oscar from scratch which gave me the following repo structure
frobshop>
__init__.py
config.py
defaults.py
manage.py
frobshop>
__init__.py
settings.py
asgi.py
urls.py
wsgi.py
2. With this we can see that there are no folders, nor files for the oscar apps as they are specified in the settings.py. So I created a root module under which all my forked apps will live, using the mkdir in cmd and i called it 'frapps'. I also created the __init__.py file inside of it.
3. I forked the checkout app using : python manage.py oscar_fork_app checkout frapps
I had a look at the github repo for oscar and noticed that the folders for the checkout and shipping app have more files that what has been created from my forking.
At this point I am now lost.
The 3 shipping methods I am trying to create are shown below as suggested by gpt4.
I really dont know how and where to go after having forked the apps. Can someone please guide me?
class PickUpAtStore(abstract_models.AbstractShippingMethod):
code = 'pick-up-at-store'
name = _('Pick up at store')
def calculate(self, basket):
return D('0.00') # No charge for pick up at store
class Yango(abstract_models.AbstractShippingMethod):
code = 'yango'
name = _('Yango')
# Other fields and logic for calculation based on volume
class PowerTools(abstract_models.AbstractShippingMethod):
code = 'powertools'
name = _('PowerTools')
# Other fields and logic for calculation based on volume